From cb56a1968dead780719f31df3f2b0d0d2e9822e5 Mon Sep 17 00:00:00 2001 From: guilhermecoutinhoJC Date: Thu, 2 Jun 2022 20:22:54 -0300 Subject: [PATCH] Fix not accounting for the property drawer height override --- Editor/Mono/GUI/ReorderableList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/Mono/GUI/ReorderableList.cs b/Editor/Mono/GUI/ReorderableList.cs index 92afa8d9c4..311483e9a8 100644 --- a/Editor/Mono/GUI/ReorderableList.cs +++ b/Editor/Mono/GUI/ReorderableList.cs @@ -552,13 +552,13 @@ internal void CacheIfNeeded() if (m_Count > 0) { + height = elementHeightCallback?.Invoke(0) ?? elementHeight; if (m_Elements != null) { property = m_Elements.GetArrayElementAtIndex(0); TryOverrideElementHeightWithPropertyDrawer(property, ref height); } - height = elementHeightCallback?.Invoke(0) ?? elementHeight; m_ScheduleGUIChanged |= m_PropertyCache[0].Set(property, height + Defaults.ElementPadding(height), offset); }