mirror of
https://github.com/szrpf/SceneAdapterDemo
synced 2025-10-25 00:15:55 +00:00
v1.3
This commit is contained in:
@@ -16,13 +16,8 @@ export default class SceneAdapter extends cc.Component {
|
||||
this.destroy();
|
||||
return;
|
||||
}
|
||||
if (cvs.designResolution.width < cvs.designResolution.height) {
|
||||
cvs.fitWidth = true;
|
||||
cvs.fitHeight = false;
|
||||
} else {
|
||||
cvs.fitWidth = false;
|
||||
cvs.fitHeight = true;
|
||||
}
|
||||
cvs.fitWidth = true;
|
||||
cvs.fitHeight = true;
|
||||
this.resize();
|
||||
cc.view.setResizeCallback(this.resize.bind(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user