| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 @license | |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
| 7 Code distributed by Google as part of the polymer project is also | |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
| 9 --><html><head><link rel="import" href="../../polymer/polymer.html"> | |
| 10 <link rel="import" href="../helpers/helpers.html"> | |
| 11 | |
| 12 <!-- | |
| 13 app-scrollpos-control is a manager for saving and restoring the scroll position
when multiple | |
| 14 pages are sharing the same document scroller. | |
| 15 | |
| 16 Example: | |
| 17 | |
| 18 ```html | |
| 19 <app-scrollpos-control selected="{{page}}"></app-scrollpos-control> | |
| 20 | |
| 21 <app-drawer-layout> | |
| 22 | |
| 23 <app-drawer> | |
| 24 <paper-menu selected="{{page}}"> | |
| 25 <paper-item>Home</paper-item> | |
| 26 <paper-item>About</paper-item> | |
| 27 <paper-item>Schedule</paper-item> | |
| 28 <paper-item>Account</paper-item> | |
| 29 </paper-menu> | |
| 30 </app-drawer> | |
| 31 | |
| 32 <div> | |
| 33 <app-toolbar> | |
| 34 <paper-icon-button icon="menu" drawer-toggle></paper-icon-button> | |
| 35 </app-toolbar> | |
| 36 <iron-pages selected="{{page}}"> | |
| 37 <sample-content size="100"></sample-content> | |
| 38 <sample-content size="100"></sample-content> | |
| 39 <sample-content size="100"></sample-content> | |
| 40 <sample-content size="100"></sample-content> | |
| 41 </iron-pages> | |
| 42 </div> | |
| 43 | |
| 44 </app-drawer-layout> | |
| 45 ``` | |
| 46 | |
| 47 @group App Elements | |
| 48 @element app-scrollpos-control | |
| 49 @demo app-scrollpos-control/demo/index.html | |
| 50 --> | |
| 51 | |
| 52 </head><body><dom-module id="app-scrollpos-control"> | |
| 53 </dom-module> | |
| 54 <script src="app-scrollpos-control-extracted.js"></script></body></html> | |
| OLD | NEW |