示例#1
0
        //刷新content容器的尺寸
        protected void RefreshContentSize()
        {
            Vector2 size = LayoutUtil.CalcLayoutSize(m_layoutParam, m_dataList.Count);

            size.x = Mathf.Max(size.x, m_contentSizeDefault.x);
            size.y = Mathf.Max(size.y, m_contentSizeDefault.y);

            m_contentSize            = size;
            m_contentTrans.sizeDelta = size;
        }
示例#2
0
 //清空布局列表
 protected void ClearLayoutItems()
 {
     LayoutUtil.RecyleLayoutItems(m_layoutItems);
 }
示例#3
0
 //初始化布列表
 protected void GenLayoutItems(int len_)
 {
     LayoutUtil.CreateLayoutItems(m_layoutParam, len_, m_layoutItems);
 }