Skip to content

Commit a898614

Browse files
committed
Corrected a mistake of ccui.ListView
1 parent 056a72b commit a898614

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ccui/uiwidgets/scroll-widget/UIListView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ ccui.ListView = ccui.ScrollView.extend(/** @lends ccui.ListView# */{
125125
isLayoutParameterExists = false;
126126
}
127127
var itemIndex = this.getIndex(item);
128-
switch (this._direction) {
129-
case ccui.ListView.DIR_VERTICAL:
128+
switch (this.direction) {
129+
case ccui.ScrollView.DIR_VERTICAL:
130130
this._remedyVerticalLayoutParameter(linearLayoutParameter, itemIndex);
131131
break;
132-
case ccui.ListView.DIR_HORIZONTAL:
132+
case ccui.ScrollView.DIR_HORIZONTAL:
133133
this._remedyHorizontalLayoutParameter(linearLayoutParameter, itemIndex);
134134
break;
135135
default:

0 commit comments

Comments
 (0)