wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

ScrollableMenu buffer too big if there's no parent menu #222

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add flexlib:ScrollableMenuBar element to Canvas
2. add mx:XMLList between ScrollableMenuBar tags
3. Run mxml file

What is the expected output? What do you see instead?
ScrollableMenuBar where the highlight of a menu item covers the entire menu
item.

Instead, I see whitespace below the last menu item.

Please use labels and text to provide additional information.

If I use the example code and use a submenu, it works fine.

After updating ScrollableMenu with the following line of code (272), it
seems to work in either scenario:

var stageHeightAvailable:Number = screen.y + screen.height - pt.y -
(this.parentMenu == null ? 9 : 2);

I would imagine style changes for text size would affect this as well, so
making it correspond to the text size may be a better approach.

Original issue reported on code.google.com by jeff.mal...@gmail.com on 15 May 2009 at 5:24