Commit 85f1aaf6 authored by 范雪寒's avatar 范雪寒

feat: 选项缩放

parent afedbabe
...@@ -184,7 +184,7 @@ cc.Class({ ...@@ -184,7 +184,7 @@ cc.Class({
optionNode.parent = box; optionNode.parent = box;
cc.tween(optionNode) cc.tween(optionNode)
.to(0.1, { scale: Math.min(1, (maxOptionWidth - 10) / optionNode.width, maxOptionHeight / optionNode.height) }) .to(0.1, { scale: Math.min((maxOptionWidth - 10) / optionNode.width, maxOptionHeight / optionNode.height) })
.start(); .start();
}); });
}, },
......
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