Closed
Bug 309289
Opened 19 years ago
Closed 19 years ago
When moving an extension up/down in the richlistbox widget, it is scrolled to the top of the window.
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.8.1
People
(Reporter: zeniko, Assigned: zeniko)
Details
(Keywords: fixed1.8.1, regression)
Attachments
(1 file, 2 obsolete files)
1.18 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050919 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050919 Firefox/1.4
Tested with the extensions manager only, but I suppose it applies to the themes
manager as well.
Reproducible: Always
Steps to Reproduce:
1. Make sure that you've got at least two view port heights of extensions
installed (at least 4, if you display only two at the time).
2. Select the top-most extension, right click it and select Move Down.
3. Select the first extension not visible on screen, right click it and select
Move Up.
Actual Results:
The extensions are correctly moved, but always scrolled to the top of the view port.
Expected Results:
Scrolling should only happen, if the extension won't be visible anymore.
![]() |
||
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
![]() |
||
Updated•19 years ago
|
Component: Extension/Theme Manager → XUL Widgets
Product: Firefox → Toolkit
QA Contact: extension.manager → xul.widgets
Assignee | ||
Comment 1•19 years ago
|
||
I'd guess that the problem lies in the fact that the neither the currently
selected index nor the current scroll position are saved before the template
rebuilding takes place in richlistbox.xml. Probably enhancing _builderListener
by this (saving on willRebuild, restoring on didRebuild) might take care of
this. If it does, a patch will be ready soon.
![]() |
||
Updated•19 years ago
|
Keywords: regression
Summary: When moving an extension up/down, it is scrolled to the top of the window. → When moving an extension up/down in the richlistbox widget, it is scrolled to the top of the window.
Assignee | ||
Comment 2•19 years ago
|
||
Seems that the scrolling position is retained already - so it comes down to
checking whether the (newly) selected element is already visible.
BTW: it seems that I've found another bug in my code from Bug 305730. I've
fixed it here, but will make sure that should only Bug 305730 make it into the
branch, it'll be fixed there, too.
Attachment #196777 -
Flags: first-review?(mconnor)
Comment 3•19 years ago
|
||
Comment on attachment 196777 [details] [diff] [review]
Check for visibility before scrolling
r=me, I thought I had that in my patch, must have lost that part.
Attachment #196777 -
Flags: second-review+
Comment 4•19 years ago
|
||
Comment on attachment 196777 [details] [diff] [review]
Check for visibility before scrolling
>Index: richlistbox.xml
> if (element) {
> this.selectedItem = element;
>- this.scrollBoxObject.scrollToElement(this.selectedItem);
>+ if (!this._isItemVisible(element))
>+ this.scrollBoxObject.scrollToElement(this.selectedItem);
> return;
> }
It'd be clearer to use either "element" or "this.selectedItem" consistently,
no? Unless I'm missing something...
Assignee | ||
Comment 5•19 years ago
|
||
Sorry for that.
Updated•19 years ago
|
Attachment #196783 -
Flags: first-review+
Updated•19 years ago
|
Attachment #196777 -
Flags: first-review?(mconnor)
Comment 6•19 years ago
|
||
Does this need to be checked in? On the branch, too?
Comment 7•19 years ago
|
||
I guess the second hunk of this patch landed on the branch in bug 305730, so the first hunk of this patch needs landing on the trunk and branch, while the second hunk will be landed on the trunk in bug 323818. Simon, is my understanding correct?
Assignee | ||
Comment 8•19 years ago
|
||
Yes; only this part has to be checked in to trunk and branch.
Assignee: nobody → zeniko
Status: NEW → ASSIGNED
Comment 9•19 years ago
|
||
mozilla/toolkit/content/widgets/richlistbox.xml 1.13.2.10
mozilla/toolkit/content/widgets/richlistbox.xml 1.28
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8.1
Version: unspecified → 1.8 Branch
Updated•19 years ago
|
Attachment #196777 -
Attachment is obsolete: true
Updated•19 years ago
|
Attachment #196783 -
Attachment is obsolete: true
Updated•19 years ago
|
Attachment #214897 -
Attachment description: patch for trunk and branch → patch for trunk and branch (checked in)
Assignee | ||
Comment 10•18 years ago
|
||
Verified using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060317 Firefox/2.0a1 ID:2006031705. Note that in later builds this issue can't be reproduced easily due to the replacement of the Extensions Manager with the new Add-ons manager.
Status: RESOLVED → VERIFIED
Updated•18 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•