Closed Bug 298704 Opened 20 years ago Closed 20 years ago

richlistbox should call ensureElementIsVisible and not scrollToElement in selectedItem

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

Attachments

(2 obsolete files)

The init method still needs to call scrollToElement but selectedItem should only
call ensureElementIsVisible otherwise when selecting an item it will always be
scrolled to the top of the viewable list even when it is already in view.
Attached patch patch (obsolete) — Splinter Review
doron, is this an acceptable approach?
Comment on attachment 187235 [details] [diff] [review]
patch

r=me, you do need a toolkit r (our beloved mconnor)
Attachment #187235 - Flags: second-review?(mconnor)
Attachment #187235 - Flags: first-review+
Attachment #187235 - Flags: approval-aviary1.1a2?
After applying this patch to my tree the extension manager returned to the
behavior it had before the fix for bug 298524 landed.

After selecting an extension and reopening the extensions manager the list is
scrolled so that the selected extension is always just out of view.
Attachment #187235 - Attachment is obsolete: true
Attachment #187235 - Flags: second-review?(mconnor)
Attachment #187235 - Flags: approval-aviary1.1a2?
Attached patch patch (obsolete) — Splinter Review
This fixes the mistake in the previous patch. I won't be around for the next
day or two so I won't be able to pester someone for a checkin of this if it
gets approved.
Attachment #187241 - Flags: first-review?(mconnor)
Attachment #187241 - Flags: approval-aviary1.1a2?
Flags: blocking1.8b3?
Comment on attachment 187241 [details] [diff] [review]
patch

Benjamin - this approach already has doron's approval.
Attachment #187241 - Flags: first-review?(mconnor)
Attachment #187241 - Flags: first-review?(benjamin)
Attachment #187241 - Flags: approval-aviary1.1a2?
Assignee: nobody → rob_strong
Attachment #187241 - Flags: first-review?(benjamin) → first-review+
Attachment #187241 - Flags: approval-aviary1.1a2?
This bug fixes the Extension Manager and Download Manager to scroll everytime an
item is selected and it isn't already located at the top of the view. It is a
simple fix and would be a good thing to get in 1.1a2... I've been running the
patch as is since I submitted it and a variation of it for over a week without
any harmful side effects.
Attachment #187241 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Whiteboard: [checkin needed][a+]
checked in on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Flags: blocking1.8b3?
Resolution: --- → FIXED
Attachment #187241 - Attachment is obsolete: true
Whiteboard: [checkin needed][a+]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: