Merge pull request #1391 from knoxHuang/v1.3

fix pageview bug for fireball/issues/4972
This commit is contained in:
Jare Guo
2016-12-23 17:04:37 +08:00
committed by GitHub
+1 -1
View File
@@ -410,7 +410,7 @@ var PageView = cc.Class({
// 当页面数组变化时修改 content 大小
var layout = this.content.getComponent(cc.Layout);
if(layout && layout.enabledInHierarchy) {
if(layout && layout.enabled) {
layout._updateLayout();
}
if (this._curPageIdx >= pageCount) {