[]相对布局,重新适应问题
我给背景图imgBG 的 left和right top bottom 赋值后 ,改变窗口大小, imgBG不会(按top = 0,left = 0,right=0,bottom=0) 变化,必须手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗
// this.imgBG.left = 0 ;
// this.imgBG.right = 0 ;
// this.imgBG.top = 0 ;
// this.imgBG.bottom = 0 ;
还有一个就是 layoutEnabled 属性 在什么情况用!
// this.imgBG.left = 0 ;
// this.imgBG.right = 0 ;
// this.imgBG.top = 0 ;
// this.imgBG.bottom = 0 ;
还有一个就是 layoutEnabled 属性 在什么情况用!
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
cuixueying
赞同来自:
cuixueying
赞同来自:
asdf131
赞同来自: