美术更新
- detail页面修改 - ui布局修改
This commit is contained in:
@@ -178,6 +178,13 @@ export default class Utils {
|
||||
//let windowSize = view.getVisibleSize();
|
||||
let bgTf = node.getComponent(UITransform);
|
||||
if (bgTf) {
|
||||
if (mod == 3) {
|
||||
if (bgTf.height < bgTf.width) {
|
||||
mod = 1;
|
||||
} else {
|
||||
mod = 2;
|
||||
}
|
||||
}
|
||||
if (mod == 1) {
|
||||
let scale = windowSize.height / bgTf.height;
|
||||
bgTf.height = bgTf.height * scale;
|
||||
|
||||
Reference in New Issue
Block a user