mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix pageview bug for fireball/issues/4972
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user