Bug 12123 - Menu:setSelectedIndex() selects correct index but initially displays top of menu
: Menu:setSelectedIndex() selects correct index but initially displays top of menu
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: UI
: unspecified
: PC Other
: -- normal (vote)
: 8.0.0
Assigned To: Wadzinski Tom
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-21 07:17 UTC by Ben Klaas
Modified: 2009-09-08 09:22 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-05-21 07:17:28 UTC
while fixing bug#12083 I noticed that the menu method setSelectedIndex() did not work correctly on the Fab4 branch. It is only broken on the branch, it works in 7.4/trunk. 

to reproduce, 
1. enter a long list, e.g. Music Library->Artists
2. scroll down to the middle of the list
3. exit the list, then re-enter. 

Browse history will setSelectedIndex() to the correct item in the middle of the menu, but the window will show the top of the menu, not the section that contains the selectedIndex. Scroll up or down and the window jumps down to the middle of the menu.
Comment 1 Mark Miksis 2009-05-21 08:13:59 UTC
Ben, is this a duplicate of bug 11927 (which you assigned to yourself)?
Comment 2 Ben Klaas 2009-05-21 08:16:04 UTC
*** Bug 11927 has been marked as a duplicate of this bug. ***
Comment 3 Wadzinski Tom 2009-05-27 05:59:39 UTC
fixed in r5892