OLD | NEW |
1 <!-- | 1 <!-- |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 --> | 5 --> |
6 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> | 6 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> |
7 <import src="city-data-service.sky" as="CityDataService" /> | 7 <import src="city-data-service.sky" as="CityDataService" /> |
8 <import src="city-sequence.sky" as="CitySequence" /> | 8 <import src="city-sequence.sky" as="CitySequence" /> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 display: none; | 155 display: none; |
156 } | 156 } |
157 | 157 |
158 .position { | 158 .position { |
159 position: absolute; | 159 position: absolute; |
160 left: 0; | 160 left: 0; |
161 right: 0; | 161 right: 0; |
162 } | 162 } |
163 | 163 |
164 </style> | 164 </style> |
165 <div id="scroller" fit> | 165 <div id="scroller"> |
166 <div id="scrollarea"> | 166 <div id="scrollarea"> |
167 <div id="contentarea"> | 167 <div id="contentarea"> |
168 </div> | 168 </div> |
169 </div> | 169 </div> |
170 </div> | 170 </div> |
171 </template> | 171 </template> |
172 <script> | 172 <script> |
173 | 173 |
174 (function(global) { | 174 (function(global) { |
175 "use strict"; | 175 "use strict"; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 | 619 |
620 scrollBy(amount) { | 620 scrollBy(amount) { |
621 this.scrollerElement.scrollTop += amount; | 621 this.scrollerElement.scrollTop += amount; |
622 this.handleScroll({ target: this.scrollerElement }); | 622 this.handleScroll({ target: this.scrollerElement }); |
623 } | 623 } |
624 }.register(); | 624 }.register(); |
625 | 625 |
626 })(this); | 626 })(this); |
627 </script> | 627 </script> |
628 </sky-element> | 628 </sky-element> |
OLD | NEW |