View Issue Details
|ID||Project||Category||Date Submitted||Last Update|
|0015690||AI War 1 / Classic||[All Projects] Bug - Other||Aug 20, 2014 6:20 pm||Aug 20, 2014 6:34 pm|
|Fixed in Version|
|Summary||0015690: Bottom-aligned context menus overlap the global unit selection buttons|
|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.
|Tags||No tags attached.|