[]panel的实际高度如何获取


panel.png

如图
在编辑器中,设置自适应大小的属性left, right,top,bottom;
当我在此panel加入N多子项形成列表时,希望某一行在panel的中间
问,在代码中,我如何知道这个panel的显示区域的实际高度
 
this.panelList.contentHeight?
this.panelList.height
this.panelList.displayHeight
this.panelList.viewport
this.panelList.scrollRect
this.panelList.getBounds()
this.panelList.getSelfBounds()
已邀请:

Aar0n

赞同来自:

自适应了,你就用父节点的大小多方便

要回复问题请先

商务合作
商务合作