Closed
Bug 1380
Opened 26 years ago
Closed 26 years ago
overflow: scroll generates scrollbars that aren't always needed
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: angus, Assigned: michaelp)
References
Details
I'm using this CSS with an XML document:
Review {
display: block;
overflow: scroll;
height: 100px;
width: 155px;
margin-left: 115px;
padding: 3px;
background-color: #ddddff;
}
It works well (I get the scrollbar) but I get both an enabled vertical scrollbar
and a disabled horizontal one. I don't think we should be showing the disabled
horizontal scrollbar.
Maybe a new property is required, something like:
scrollbar: (horizontal|vertical|none)
I dunno.
This is an open issue whether the horizontal scrollbar should be disabled
in this case. If you use 'auto' instead of 'scroll' then you won't get either
scrollbar displayed unless needed
is this still a problem today? is this a philosophical thing that we need to
resolve or is it a bug?
Reporter | ||
Comment 4•26 years ago
|
||
On a window, if I don't need a horizontal scrollbar, I don't see one (disabled
or otherwise). I shouldn't expect to see different behavior on other scrolled
areas, like this DIV. If the horizontal space available can accomodate the
content, I don't think we should render a scrollbar. This is the behavior on
actual windows, so I think it's a bug.
ok, so is this still a problem today? if so, add a url to an example. thanks.
Reporter | ||
Comment 6•26 years ago
|
||
Use the "books" XML demo that Vidur made as the example. Is a zip file download
from mozilla.org.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
"overflow:scroll" gives you two scrollbars. If you don't want two of them
then use 'auto' instead
I agree that it would be nice if theer was a way to specify that there should
always be a vertical scrollbar and no horizontal scrollbar, but that doesn'
t seem to be the case with CSS
Cc'ing Peter in case he can shed some light on the subject
Comment 9•22 years ago
|
||
*** Bug 122602 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•