Description | Bottom-aligned context menus (like the special unload menu) overlap the global unit selection buttons at the bottom of the screen. This wouldn't be such a problem if not for bug 0011811 which then prevents you from clicking the last few items in the context menu.
For the devs, here is the cause: ContextMenuWindow.Show and .SwitchTo first clear the button set and then call Resize. Resize sizes the menu based on the size of the now-empty button set. Then, for a bottom-aligned menu, TryForPosition can't calculate the correct top Y coordinate for the menu since the correct menu height isn't known yet. That wouldn't be too bad since Resize and TryForPosition are called again in SubclassPreRender after the menu has been filled. The problem is that SubclassPreRender doesn't remember that the menu was supposed to be bottom-aligned and uses the top Y coordinate incorrectly computed earlier. The now enlarged menu extends below where it was supposed to be bottom-aligned. |
---|