Open
Bug 416192
Opened 18 years ago
Updated 3 years ago
scrollbar handle doesn't respect min-slider-length
Categories
(Core :: Widget: Gtk, defect, P5)
Tracking
()
NEW
People
(Reporter: saltyhorse, Unassigned)
References
Details
Attachments
(1 file)
|
21.05 KB,
video/x-theora
|
Details |
Using Gecko/2008020708 Minefield/3.0b4pre and the Human theme.
When the history sidebar has many elements, the scrollbar handle is sized below the allowed minimal width. This means that any decorations that should be inside the handle spill out. [See the attached video for an example]
I think the problem is specific to the sidebar. I tried opening a long page, and the page's scrollbar kept to the correct minimum allowed size.
Comment 1•18 years ago
|
||
I can confirm this.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2008020717 Minefield/3.0b3pre
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•18 years ago
|
||
It's strange, since GetMinimumWidgetSize calls moz_gtk_get_scrollbar_metrics which queries the minimal width (for an horiz scrollbar) or height (vertical). The only explanation I can find is that the comment that says "Setting aIsOverridable to PR_TRUE has no effect for thumbs" is wrong and that we should do it.
If it's not that, then it's probably a layout bug and it would be really difficult to track down.
Comment 3•18 years ago
|
||
No, sorry, it's the other way around: aIsOverridable should be set to PR_FALSE, so the code is correct (or the name aIsOverridable is wrong). I don't understand why layout doesn't obey this minimal size.
Comment 4•18 years ago
|
||
I tested, and it works for me, both when using the default theme value, and when returning 100px for the minimum size. I tested with the history sidebar scrollbar, with approx 130 entries and a 200px window height.
Comment 5•18 years ago
|
||
Michael: How did you succeed in reproducing ?
Comment 6•18 years ago
|
||
OK, now I see it. It's indeed only visible at startup, and with any refresh of the scrollbar (folder opening, changing search options, etc...) the correct size is used. I don't see the problem with the "size=100px" hack, so the problem is that at startup the call to moz_gtk_get_scrollbar_metrics doesn't return the right thing.
| Reporter | ||
Comment 7•18 years ago
|
||
I think the handle is drawn incorrectly only when "launching" the sidebar.
After I filtered results with the search box, and removed the filter, the handle appeared correctly (respecting the minimum length).
Comment 8•18 years ago
|
||
In fact, it's not the call to moz_gtk_get_scrollbar_metrics who returns the wrong value. It's rect.width and rect.height which are wrongly 0, so
PR_MIN(NSAppUnitsToIntPixels(rect.height, p2a), metrics.min_slider_size)
is 0.
Comment 9•7 years ago
|
||
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•