-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathh2-scroll-view.js
55 lines (49 loc) · 1.04 KB
/
h2-scroll-view.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
`h2-scroll-view`
Example:
```html
<h2-scroll-view>
<p>Alice was beginning to get very tired of sitting by her sisteron the bank, and of having nothing to do</p>
</h2-scroll-view>
```
*/
/*
FIXME(polymer-modulizer): the above comments were extracted
from HTML and may be out of place here. Review them and
then delete this comment!
*/
/**
* @customElement
* @polymer
* @demo demo/h2-scroll-view/index.html
*/
class H2ScrollView extends Polymer.mixinBehaviors([], Polymer.Element) {
static get template() {
return Polymer.html`
<style>
:host {
display: flex;
}
#scroll-container {
flex: 1;
display: flex;
}
#inner-container {
flex: 1;
}
</style>
<paper-dialog-scrollable id="scroll-container">
<div id="inner-container">
<slot></slot>
</div>
</paper-dialog-scrollable>
`;
}
static get properties() {
return {};
}
static get is() {
return "h2-scroll-view";
}
}
window.customElements.define(H2ScrollView.is, H2ScrollView);