| Index: third_party/polymer/v1_0/components-chromium/app-layout/app-scrollpos-control/app-scrollpos-control.html
|
| diff --git a/third_party/polymer/v1_0/components-chromium/app-layout/app-scrollpos-control/app-scrollpos-control.html b/third_party/polymer/v1_0/components-chromium/app-layout/app-scrollpos-control/app-scrollpos-control.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6e2e29b18ab4e2b2bffcb5c2ce665b98b6e8d2fd
|
| --- /dev/null
|
| +++ b/third_party/polymer/v1_0/components-chromium/app-layout/app-scrollpos-control/app-scrollpos-control.html
|
| @@ -0,0 +1,54 @@
|
| +<!--
|
| +@license
|
| +Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
| +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
| +Code distributed by Google as part of the polymer project is also
|
| +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| +--><html><head><link rel="import" href="../../polymer/polymer.html">
|
| +<link rel="import" href="../helpers/helpers.html">
|
| +
|
| +<!--
|
| +app-scrollpos-control is a manager for saving and restoring the scroll position when multiple
|
| +pages are sharing the same document scroller.
|
| +
|
| +Example:
|
| +
|
| +```html
|
| +<app-scrollpos-control selected="{{page}}"></app-scrollpos-control>
|
| +
|
| +<app-drawer-layout>
|
| +
|
| + <app-drawer>
|
| + <paper-menu selected="{{page}}">
|
| + <paper-item>Home</paper-item>
|
| + <paper-item>About</paper-item>
|
| + <paper-item>Schedule</paper-item>
|
| + <paper-item>Account</paper-item>
|
| + </paper-menu>
|
| + </app-drawer>
|
| +
|
| + <div>
|
| + <app-toolbar>
|
| + <paper-icon-button icon="menu" drawer-toggle></paper-icon-button>
|
| + </app-toolbar>
|
| + <iron-pages selected="{{page}}">
|
| + <sample-content size="100"></sample-content>
|
| + <sample-content size="100"></sample-content>
|
| + <sample-content size="100"></sample-content>
|
| + <sample-content size="100"></sample-content>
|
| + </iron-pages>
|
| + </div>
|
| +
|
| +</app-drawer-layout>
|
| +```
|
| +
|
| +@group App Elements
|
| +@element app-scrollpos-control
|
| +@demo app-scrollpos-control/demo/index.html
|
| +-->
|
| +
|
| +</head><body><dom-module id="app-scrollpos-control">
|
| + </dom-module>
|
| +<script src="app-scrollpos-control-extracted.js"></script></body></html>
|
|
|