Example #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;
        }
Example #2
0
 //清空布局列表
 protected void ClearLayoutItems()
 {
     LayoutUtil.RecyleLayoutItems(m_layoutItems);
 }
Example #3
0
 //初始化布列表
 protected void GenLayoutItems(int len_)
 {
     LayoutUtil.CreateLayoutItems(m_layoutParam, len_, m_layoutItems);
 }