Closed Bug 73137 Opened 24 years ago Closed 23 years ago

[RFE] capability to have half-size scrollbars

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9

People

(Reporter: marlon.bishop, Assigned: hyatt)

Details

Attachments

(2 files)

We need the capability to specify an alternate scrollbar in certain places.   
Allows us to save space in compact places such as the Sidebar, possibly in prefs.
assigning to Hyatt - as recommended
Assignee: trudelle → hyatt
Updating summary.  It's a more general issue of being able to specify different 
CSS for different types of scrollbars - which tiny scrollbars are an example. 
Such kinds of scrollbars appear in IE as well as in various places on MacOS and 
would be useful for places which need as much horizontal space as possible:
AIM, autocomplete, history, etc.
Summary: half-size scrollbars → [RFE] capability to have half-size scrollbars
There are lots of ways I can think of to solve this.  One way would be to enable
scrollbars to use the parent selector during style resolution to find the
element which they are scrolling, like "#folderPane > scrollbar" or
".sidebar-panel > scrollbar".

Alternatively, we could specify an attribute on elements called "scrollbarclass"
such that <box scrollbarclass="my-scrollbar"> would allow you to select the
scrollbar with .my-scrollbar.
Ok, this patch enables you to use the parent selector with scrollbars in XUL 
docs, e.g., you can style a treechildren scrollbar by saying

treechildren > scrollbar {
 la la la;
}
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Fix checked in.  Enjoy.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
See, even though I let super-reviewers have lots of discretion, they need to
enlist at least a rs= (rubberstamp=) in addition to an r=.  I know hyatt
smooched and made up to shaver on IRC, but the problem for rule-makers like me
at mozilla.org is that others (who may or may not be good enough to do without
r= and sr=) will point to this bug and cry foul.

So foul noted, and there'd better be no harm.

/be
I just tried a simple demo and it works great!
Still not quite right.  Need to also handle HTML selectively.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
hewitt has done the sr on this.  I just need an r.
Status: REOPENED → ASSIGNED
danm has done the r.
Really fixed.  The attr you can use on <browser> is "usechromesheets".
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: