From c85c7908b57d0c5f4faf6cafad22e3d82990d183 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 2 Oct 2024 17:32:25 -0400 Subject: [PATCH] Fix #1613. 3ds Max 2020 is also affected by `MoveWindow()` not properly resizing AutoUIs. So, relax the check back to 3ds Max 2020. --- Sources/MaxPlugin/MaxComponent/plAutoUIBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/MaxPlugin/MaxComponent/plAutoUIBase.cpp b/Sources/MaxPlugin/MaxComponent/plAutoUIBase.cpp index 7bbf7e3658..7eb0122add 100644 --- a/Sources/MaxPlugin/MaxComponent/plAutoUIBase.cpp +++ b/Sources/MaxPlugin/MaxComponent/plAutoUIBase.cpp @@ -501,8 +501,8 @@ void plAutoUIBase::ICreateControls() RECT rect; GetWindowRect(fhDlg, &rect); -#if MAX_VERSION_MAJOR >= 24 // Max 2022 - // This used to use MoveWindow() to resize the rollup, but in Max 2022, +#if MAX_VERSION_MAJOR >= 22 // Max 2020 + // This used to use MoveWindow() to resize the rollup, but in Max 2020, // that does not seem to work anymore. So, we now do the same thing // that WM_SIZE_PANEL does. IRollupWindow* rollup = GetCOREInterface()->GetCommandPanelRollup();