Beispiel #1
0
        private float ComputeContentHeightHorizontal()
        {
            float maxSize = 0;

            if (wrappedTracks != null && wrappedTracks.size != 0)
            {
                float retn = 0;
                for (int i = 0; i < wrappedTracks.size; i++)
                {
                    ref Track track = ref wrappedTracks.array[i];

                    float maxHeight = 0;

                    for (int j = track.startIndex; j < track.endIndex; j++)
                    {
                        ref FlexItem item = ref items.array[j];
                        item.layoutBox.GetHeights(ref item.heightData);
                        item.baseHeight = item.heightData.Clamped;

                        if (item.baseHeight + item.heightData.marginStart + item.heightData.marginEnd > maxHeight)
                        {
                            maxHeight = item.baseHeight + item.heightData.marginStart + item.heightData.marginEnd;
                        }
                    }

                    retn += maxHeight;
                }
Beispiel #2
0
 public FlexNodeBase(FlexNodeBase parentNode, FlexItem ffObject)
 {
     m_ParentNode = parentNode;
     m_DataItem   = ffObject;
     m_Level      = (parentNode == null) ? 0 : parentNode.Level + 1;
 }
Beispiel #3
0
 public FlexNodeReport(FlexNodeBase parentNode, FlexItem item)
     : base(parentNode, item)
 {
 }