diff --git a/Sources/Tools/MaxComponent/plAutoUIBase.cpp b/Sources/Tools/MaxComponent/plAutoUIBase.cpp index 510c8f4c9f..2187beaa0f 100644 --- a/Sources/Tools/MaxComponent/plAutoUIBase.cpp +++ b/Sources/Tools/MaxComponent/plAutoUIBase.cpp @@ -512,17 +512,7 @@ void plAutoUIBase::ICreateControls() RECT rect; GetWindowRect(fhDlg, &rect); - - // This used to use MoveWindow() to resize the rollup, but in Max 2022, - // that does not seem to work anymore. So, we now do the same thing - // that WM_SIZE_PANEL does. - IRollupWindow* rollup = GetCOREInterface()->GetCommandPanelRollup(); - int index = rollup->GetPanelIndex(fhDlg); - - if (index >= 0) - rollup->SetPageDlgHeight(index, yOffset + 5); - - InvalidateRect(fhDlg, nullptr, TRUE); + MoveWindow(fhDlg, rect.left, rect.top, rect.right - rect.left, yOffset+5, FALSE); } void plAutoUIBase::CreateAutoRollup(IParamBlock2 *pb)