Closed Bug 553814 Opened 15 years ago Closed 15 years ago

scrollbar on xul listboxes (like the profile list in profile manager) disappears

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: tnikkel, Assigned: enndeakin)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

If you have enough profiles to cause the profile list to be scrollable in the profile manager and then scroll it the scrollbar disappears sometimes. The first bad changeset is http://hg.mozilla.org/mozilla-central/rev/a35c6813e87d (with the later build bustage fix applied), which is bug 544472.
I have a similar experience with the profile manager. For me, if the profile list is scrolled to the top, there is no scrollbar visible. If it gets scrolled down at all, the scrollbar appears. The further down I scroll, the wider (not really sure what the descriptive word should be, there's more blank space on each side of the scrollbar) the scrollbar becomes. Scrolling back towards the top of the list narrows the scrollbar, until you reach the top of the list and it disappears.
Yeah, that is the same thing I saw, I just described the most obvious problem. :)
blocking2.0: --- → ?
Keywords: regression
Attached file testcase
It's seen in Minefield only, not in other current nightlies. I tested it using zip builds: Working: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a4pre) Gecko/20100318 Minefield/3.7a4pre http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2010-03-18-04-mozilla-central/ http://hg.mozilla.org/mozilla-central/rev/2cc5ad2cf917 Regressed: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a4pre) Gecko/20100319 Minefield/3.7a4pre http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2010-03-19-04-mozilla-central/ http://hg.mozilla.org/mozilla-central/rev/5108c4c2c043
Won't block the release on this, but we'd take a patch.
blocking2.0: ? → -
This likely affects all listboxes, not just the profile manager.
(In reply to comment #6) > This likely affects all listboxes, not just the profile manager. It does, according to comment 3's attachment.
Summary: scrollbar on profile list in profile manager disappears → scrollbar on xul lixtboxes (like the profile list in profile manager) disappears
blocking2.0: - → ?
blocking2.0: ? → final+
Assignee: nobody → enndeakin
Vote for blocking - at least for our xulrunner based application it's a major issue.
Fixes the problem for ordinary listboxes, but not tested for the profile manager. Doesn't fix the underlying issue which is that a minimum height set on the listbox interferes with the real minimum height computation. I think this is because nsListBoxLayout::GetMinSize doesn't use the explicit minimum height when computing the minimum size to use.
Attached patch include testSplinter Review
Note sure why the listbox needs to set the minheight and I can't see anything broken without it.
Attachment #441380 - Attachment is obsolete: true
Attachment #441616 - Flags: review?(neil)
So basically the rows calculation is now all done in GetPrefSize?
(In reply to comment #12) > So basically the rows calculation is now all done in GetPrefSize? Seems like it
Summary: scrollbar on xul lixtboxes (like the profile list in profile manager) disappears → scrollbar on xul listboxes (like the profile list in profile manager) disappears
Is it predictable, when this fix is showing up in the nightly builds?
Attachment #441616 - Flags: review?(neil) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Depends on: 565669
Verified with Mozilla/5.0 (Windows; U; Windows NT 6.0; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100517 Minefield/3.7a5pre (.NET CLR 3.5.30729) ID:20100517035949
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: