okrokpokrok - WndSetPos fixed for popups

This commit is contained in:
Mirek Fidler 2025-12-20 09:28:15 +01:00
parent 51df22c833
commit 6c076f6d9f
3 changed files with 11 additions and 5 deletions

View file

@ -595,10 +595,12 @@ void MenuBar::PopUp(Ctrl *owner, Point p, Size rsz)
CloseHandle(CreateThread(NULL, 0, PlaySoundThread, NULL, 0, &dummy));
#endif
doeffect = true;
DLOG("===================== MENU POPUP");
Ctrl::PopUp(owner, true, true, GUI_DropShadows(), !owner);
GuiPlatformAfterMenuPopUp();
if(eff)
Animate(*this, p.x, p.y, sz.cx, sz.cy);
DDUMP(GetScreenRect());
sz = GetSize(); // final size can be a bit bigger, e.g. in macos
pane.RightPos(0, sz.cx).BottomPos(0, sz.cy);
}