Kevincosme / flexlib

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

Submenus of ScrollableMenu/ScrollableArrowMenu don't correspond with hovered menu item #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a minimum 2 "level" menu (make sure the top level has enough 
items to scroll).
2. Roll over an item in the top level menu to reveal the submenu.
3. Scroll through the top level menu, and hover over various items 
randomly.  Notice that submenu data sometimes doesn't correspond to the 
hovered item.

What version of the product are you using? On what operating system?
Not sure what version, but I downloaded it from 
http://dougmccune.com/flex/scrollable_menus2/srcview/index.html (not sure 
if that's different than the version in flexlib).  OS = Windows XP

Please provide any additional information below.
The bug has to do with menus getting associated with item renderers, and 
since item renderers get reused when scrolling, it causes an issue.  My 
solution (not sure this is the best way) was to make sure the dataProvider 
for submenus is updated everytime the submenu is created.  Made updates to 
openSubMenu function of both ScrollableMenu and ScrollableArrowMenu (see 
attached).

Original issue reported on code.google.com by philterd...@gmail.com on 2 May 2007 at 7:35

Attachments:

GoogleCodeExporter commented 8 years ago
I believe this is not an issue with the version of the component in flexlib. 
I'll
keep testing a bit, but I ahven't been able to reproduce. Marking as invalid.

Original comment by dmcc...@gmail.com on 23 May 2007 at 7:15

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 2:37