Borodar.ReorderableList.ReorderableListControl.DrawLayoutListField C# (CSharp) Method

DrawLayoutListField() private method

Do layout version of list field.
private DrawLayoutListField ( IReorderableListAdaptor adaptor, float padding ) : Rect
adaptor IReorderableListAdaptor Reorderable list adaptor.
padding float Padding in pixels.
return UnityEngine.Rect
        private Rect DrawLayoutListField(IReorderableListAdaptor adaptor, float padding)
        {
            Rect position = GetListRectWithAutoLayout(adaptor, padding);

            // Make room for footer buttons?
            if (HasFooterButtons)
                position.height -= FooterButtonStyle.fixedHeight;

            s_CurrentListStack.Push(new ListInfo(_controlID, position));
            try {
                // Draw list as normal.
                adaptor.BeginGUI();
                DrawListContainerAndItems(position, adaptor);
                HandleDropInsertion(position, adaptor);
                adaptor.EndGUI();
            }
            finally {
                s_CurrentListStack.Pop();
            }

            CheckForAutoFocusControl();

            return position;
        }