blob: d0a7c2d7d1181746d52dedf2336ce6f8bd6eeb9c (
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
33
34
35
36
37
38
39
40
41
|
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);
},
generatePage: function() {
this.inherited(arguments);
//this.doOffset({offset: this.$.generator.getRowOffset(), rowSize: this.rowSize});
},
getRowSize: function () {
return this.rowSize;
},
reset: function (inIndex) {
this.getSelection().clear();
this.invalidateMetrics();
this.invalidatePages();
this.stabilize();
if(inIndex)
this.scrollToRow(inIndex + 1);
else
this.scrollToRow(1);
}
});
|