• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 167 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0032 秒)

11. UI加载完成后无法获取控件的大小——超详细版问题 [ 93%]

...小——超详细版问题 1,背景。 引入 了DOM,需要将DOM在resize 和scroll的时候 始终绑定到UI中的 参考label上。   2,目前遇到的问题 PC端测试,在UI加载完成后,将DOM绑定到resize和scroll事件上,可以实现DOM与参考Label 位置绑定。  但...

来源: Laya_社区 发布时间: 20170720

12. 区块地图-滚动地图 [ 93%]

...加载完成的回调 */ function completeHandler() { Laya.stage.on(Event.RESIZE, this, resize); resize(); } //鼠标按下拖动地图 function mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { ...

来源: Laya_示例 发布时间: 20250223

13. 舞台resize的时候3D模型怎么跟这同样比例缩小 [ 93%]

舞台resize的时候3D模型怎么跟这同样比例缩小 Laya.stage.scaleMode = Stage.SCALE_FIXED_WIDTH; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信...

来源: Laya_社区 发布时间: 20180309

14. 区块地图-滚动地图 [ 93%]

.../ 地图加载完成的回调 completeHandler() { Laya.stage.on(Laya.Event.RESIZE, this.resize); this.resize(); } // 鼠标按下拖动地图 mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } mouseMove() { le...

来源: Laya2.0_示例 发布时间: 20250223

15. ios升级17.0后 UI 控件多次调用 RESIZE 卡死的问题 [ 90%]

ios升级17.0后 UI 控件多次调用 RESIZE 卡死的问题   附件 : --> 2023-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 诗和远方 赞同来自: 大佬们有么有解决方案?给点点子。 ...

来源: Laya_社区 发布时间: 20230808

16. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 87%]

...nce, 0, 0, this.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: 离开这个有videoElement页面 也做了 Laya....

来源: Laya_社区 发布时间: 20181020

17. laya.ui.View 扩展 [ 82%]

...么扩展laya.ui.View,比如:我需要添加 Laya.stage.on(Laya.Event.RESIZE, this, this.windowResize); 调整我的view 的位置 2017-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同...

来源: Laya_社区 发布时间: 20170805

18. 发布Oppo小游戏屏幕适配bug [ 81%]

...释掉就好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode ...

来源: Laya_社区 发布时间: 20200520

19. TypeError: relativePath is undefined [ 81%]

...加载完成的回调 */ function completeHandler() { Laya.stage.on(Event.RESIZE, this, resize); resize(); } //鼠标按下拖动地图 function mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { ...

来源: Laya_社区 发布时间: 20171205

20. 分享:Panel下动态修改子容器宽高并刷新显示! [ 81%]

...,0,500,1000*60,"#FF0000"); sp.size(500,1000*60);//sp高度改变 sp.event('resize');//此处是重点,sp动态改变宽高后,需要派发一个resize事件 } } } 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

来源: Laya_社区 发布时间: 20170601