blob: c318870bf481a53fc8b187a4d3592d9d12a2c099 (
plain) (
blame)
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
|
enyo.kind({
name: "VerseList",
kind: "List",
published: {
clientStyle: "display: inline;"
},
events: {
onOffset: ""
},
create: function () {
this.inherited(arguments);
this.$.port.addRemoveClass("verse-view", true);
this.clientStyleChanged();
},
clientStyleChanged: function () {
this.$.generator.setClientStyle(this.clientStyle);
},
reset: function (inIndex) {
this.getSelection().clear();
this.invalidateMetrics();
this.invalidatePages();
this.stabilize();
if(inIndex)
this.scrollToRow(inIndex + 1);
else
this.scrollToRow(1);
}
});
|