Commit 89560fc3 authored by wangxin's avatar wangxin

v6

parent 8e2a8007
No preview for this file type
......@@ -204,7 +204,6 @@ cc.Class({
if (countScale > 0) {
scale = 1 - countScale * scaleAdjust;
}
// this.options.scale = scale;
for (let i = 0; i < this.data.options.length; i++) {
let op = null;
......@@ -229,6 +228,17 @@ cc.Class({
this.scheduleOnce(function () {
self.options.getComponent(cc.Layout).enabled = false;
}, 0.2);
cc.view.setResizeCallback(function () {
let frameSize = cc.view.getFrameSize();
let designSize = cc.Canvas.instance.designResolution;
let scaleX = frameSize.width / designSize.width;
let scaleY = frameSize.height / designSize.height;
let scale = Math.min(scaleX, scaleY);
if (scale < 1) {
self.options.scale = scale;
}
});
},
playTitle() {
......
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