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

大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)

831. 微信小游戏开放数据域按钮点击位置偏移 [ 67%]

...s = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphic...

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

832. 微信小游戏渲染开放域卡顿处理 [ 67%]

...lf = this;             var width = self.width;             var height = self.height;             var data = {                 view: self.$viewName,                 width: width,                 height: height             };             // 赋值...

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

833. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...ya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} cre...

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

834. 用iframe内嵌网页及适配 [ 67%]

...); //适配处理 var frameWidth = 720 * Laya.stage.clientScaleX; var frameHeight = 1280 * Laya.stage.clientScaleY; var styleStr = "position: absolute; left: {0}px; top: {1}px; z-index: 100009;";//laya 的index是100000 var str = styleStr.format((laya.utils.Browser.width - frameWidth) * 0.5, (laya.u...

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

835. 分包后, 资源加载问题 [ 67%]

...gjzaUI.uiView); } loadingjzaUI.uiView={"type":"View","props":{"width":192,"height":269},"compId":1,"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"loading/dt_jza_loadtuan_zj.png"}},{"type":"Box","props":{"y":0,"x":0},"child":[{"type":"Image","props":{"y":0,"x":0,"width":192,"skin":"loading/dt_...

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

836. 1.5.0 LayaAir IDE发布UI资源缺失! [ 67%]

...uiView',function(){return this.uiView={"type":"View","props":{"width":600,"height":400}};}         ]);         return ABCPanelUI;     })(View); var TestPageUI=(function(_super){         function TestPageUI(){                          TestPageUI.__super.call(thi...

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

837. HtmlDivElement 描边和下划线不能同时使用 [ 67%]

...同来自: 刚刚实测没问题,   代码:<div style='width:300px;height:100px;color:#ff0000;font-size:25px;font-family:SimSun;vertical-align:bottom;line-height:20px;'> <p><span style='font-weight:bold;stroke:3px; font:24px Arial' color='red' href='https://ask.layabox.com/'> ...

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

838. list中加的button不能接收点击事件 求一个list中加button的demo [ 67%]

...List;         list.width = this.itemList.width;         list.height = this.itemList.height;         list.x = this.itemList.x;         list.y = this.itemList.y;         list.spaceY = 12;         list.vScrollBarSkin = "";         list.selectEnable = tru...

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

839. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...   public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};         constructor...

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

840. 写入时,对不上位置 [ 67%]

...17 11:31 @Monica: 还要 加这个Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; king • 2017-07-17 11:32 @Monica:就有问题了啊, Monica • 2017-07-17 14:41 @king:同事这边没有时间去看这个问题,目前最简单的解决方法就是在舞台下添加个root容器。然后移动...

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