3
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
This code may only be used under the BSD style license found at http://polymer.github.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/CONTRIBUTORS.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/PATENTS.txt
11
<link rel="import" href="../../polymer/polymer.html">
12
<link rel="import" href="../iron-scroll-target-behavior.html">
14
<dom-module id="x-scrollable">
24
border-bottom: 1px solid #ccc;
25
background-color: white;
33
<template is="dom-repeat" items="[[_getItems(itemCount)]]">
34
<div class="item">[[index]]</div>
55
Polymer.IronScrollTargetBehavior
58
_defaultScrollTarget: null,
60
_getItems: function(itemCount) {
61
var items = new Array(itemCount);
62
while (itemCount > 0) {
63
items[--itemCount] = true;