View Issue Details

IDProjectCategoryLast Update
0015690AI War 1 / ClassicBug - OtherAug 20, 2014 6:34 pm
ReporterAdamMil Assigned To 
Status newResolutionopen 
Product Version7.062 
Summary0015690: Bottom-aligned context menus overlap the global unit selection buttons
DescriptionBottom-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.
TagsNo tags attached.
Internal Weight

Relationships

related to 0011811 new Menu clicking trouble 

Activities

AdamMil

Aug 20, 2014 6:34 pm

reporter   ~0039010

I've created a fix for this bug in a mod: http://www.arcengames.com/forums/index.php/topic,16085.0.html Hopefully we'll get the real fix soon. :-P

Issue History

Date Modified Username Field Change
Aug 20, 2014 6:20 pm AdamMil New Issue
Aug 20, 2014 6:21 pm AdamMil Relationship added related to 0011811
Aug 20, 2014 6:34 pm AdamMil Note Added: 0039010