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;
}