Commit 56e85259 authored by 李维's avatar 李维

修复双排选项窗口过高的问题

parent 1dee227d
......@@ -121,10 +121,10 @@ export default class NewClass extends cc.Component {
optionNode.active = true;
listLayout.addChild(optionNode);
});
center.height = option.length * this.optionHeight + this.headerHeight;
list.height = option.length * this.optionHeight;
listLayout.height = option.length * this.optionHeight;
const opLen = col2 ? Math.ceil(option.length / 2) : option.length
center.height = opLen * this.optionHeight + this.headerHeight;
list.height = opLen * this.optionHeight;
listLayout.height = opLen * this.optionHeight;
} else {
const rightWrongLayout = cc.find("center/list/layout_right_wrong", this.node);
const rightIcon = cc.find("right/icon_right", rightWrongLayout);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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