Module: wine Branch: master Commit: 755abced55b85632e0e32c1fb9567446d047ff96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=755abced55b85632e0e32c1fb9...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Dec 15 17:44:03 2011 +0100
user32: Always use the default alignment when displaying submenu popups.
---
dlls/user32/menu.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c index 3ec682f..349adc6 100644 --- a/dlls/user32/menu.c +++ b/dlls/user32/menu.c @@ -2395,6 +2395,9 @@ static HMENU MENU_ShowSubPopup( HWND hwndOwner, HMENU hmenu, } }
+ /* use default alignment for submenus */ + wFlags &= ~(TPM_CENTERALIGN | TPM_RIGHTALIGN | TPM_VCENTERALIGN | TPM_BOTTOMALIGN); + MENU_ShowPopup( hwndOwner, item->hSubMenu, menu->FocusedItem, wFlags, rect.left, rect.top, rect.right, rect.bottom ); if (selectFirst)