Commit 2d696cbe authored by liujiangnan's avatar liujiangnan

feat

parent bbe9220d
...@@ -35,6 +35,8 @@ export default class NewClass extends cc.Component { ...@@ -35,6 +35,8 @@ export default class NewClass extends cc.Component {
if (this.list.length < 3) { if (this.list.length < 3) {
this.layout = this.node.getChildByName("layout"); this.layout = this.node.getChildByName("layout");
this.layout.width = this.list.length == 2 ? 880 : 440; this.layout.width = this.list.length == 2 ? 880 : 440;
this.node.getChildByName("scrollview").active = false;
} else { } else {
let scrollview = this.node.getChildByName("scrollview"); let scrollview = this.node.getChildByName("scrollview");
let view = scrollview.getChildByName("view"); let view = scrollview.getChildByName("view");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment