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

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

21. list渲染的时候取不到cell.x的值【不必现】 [ 92%]

list渲染的时候取不到cell.x的值【不必现】 list.array正确赋值了,但在渲染的时候  renderItems函数内的X值未NaN。会导致list不能显示出其内容。 版本1.7.9 附件 : --> 2018-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

22. laya.d3.core.scene.bvhscenerendermanager.BVHRenderSpatial_API3.0 [ 92%]

...tial Index Constructors constructor Accessors bvhSpatialBox Methods addOne cellLegal destroy getItemByCameraCullInfo getItemByFrustum getItemBySCI motionOne rebuild removeOne update Constructors constructor new BVHRenderSpatial(bvhConfig?: BVHSpatialConfig, bvhManager?: BVHSpatialManager): BVHRender...

来源: Laya3.0_api 发布时间: 20231115

23. 使用getChildByName()无法得到子节点对象 [ 92%]

...erHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)return;             //获取当前渲染条目的数据       ...

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

24. List 组件做的手风琴Demo [ 92%]

...--------------------------------------------------------------- updateItem(cell:Item,index:number){           var img1 = cell.getChildByName("img1") as Laya.Image;         var img2 = cell.getChildByName("img2") as Laya.Image;         img1.on("click",this,this.onRefresh,[inde...

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

25. List滚动条问题 [ 92%]

...st.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + c...

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

26. list 下 生成图片模糊 [ 91%]

...使用 你们的 list 1.7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addCh...

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

27. ui.list的高度如果是cell高度的3.5倍,但是repeatY只是1-2的时候还是会可以上下滑动 [ 91%]

ui.list的高度如果是cell高度的3.5倍,但是repeatY只是1-2的时候还是会可以上下滑动 个人猜测,感觉这个可能是changeCells里面计算this._cellOffset的方法里面乘数是Math.max而不是Math.min得出来的数值导致的问题(2.0.0 laya.ui.js 8451行) 附件 : ...

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

28. list item 添加事件后无法监听 [ 91%]

...ew Handler(this, updateItem);     return list; }  function updateItem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }...

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

29. 列表里的元素可以播放动画吗 [ 90%]

...event,index         }          public function onRender(cell:Box,index:int):void          {              //当list刷新时接收并更改单元格属性              var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找...

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

30. List中元素点击事件, [ 88%]

... 1 个回复 qian 赞同来自: https://ask.layabox.com/question/2321 是cell么   2018-03-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 182*****278 相关问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 分享:自定...

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