Closed Bug 185746 Opened 22 years ago Closed 20 years ago

vanishing scrollbar on fake-frames-in-CSS "position: fixed" page

Categories

(Core :: Layout: Positioned, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jwz, Assigned: roc)

References

()

Details

Attachments

(1 file)

The above URL shows an example of how to (purportedly) do frames-like things
using CSS.  It looks pretty good when you first load that URL -- but as soon as
you resize the window, the scrollbar vanishes.  Doesn't matter how you resize
the window, or even whether the width changes: making it wider, thinner, taller,
or shorter triggers the lossage.  You can still scroll the text by dragging a
selection with the mouse.

Hitting reload makes the scrollbar come back.  Resizing again makes it vanish again.

Mozilla 1.2
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021203
Red Hat 7.2
-> R & A Pos.  (Hmmm.  Maybe the intentionally-cryptic component name was a
little too cryptic.  But it's probably better this way.)
Assignee: float → position
Component: Layout: Floats → Layout: R & A Pos
The only reason I can think of that this would happen is something weird with
the splitting of style data that makes us think that the Area frame (the frame
for the div inside the scrollport) is 'position: fixed' and thus doesn't count
for overflow.  However, I don't see why that wouldn't cause the same problem the
first time around.

(Of course, :-moz-scrolled-content inherits 'display', but not 'position', so it
shouldn't be a problem in the first place.  But I could imagine that causing
other weird problems.)
It's worth noting that triggering an incremental reflow on something inside the
scrollable div brings the scrollbar back, e.g., entering 
  javascript:void(document.getElementsByTagName("p")[0].style.width='400px')
in the URL bar.
Works in an 11/13 build. Must be a regression, ergo probably my fault :-).
Assignee: position → roc+moz
Works for me in 2002121708 too (although the scrollbars look like crap which is
a new bug)
For no reason I can really justify, I rewrote my bookmarks page to be frameless
in this way:

http://www.jwz.org/bookmarks.html

It works pretty well, except sometimes, in the right cell, no lines wrap,
causing a horizontal scrollbar to appear.  I *think* this no-wrap state is
triggered every time you resize the window.  Hitting reload causes lines to wrap
again, and the horizontal scrollbar to vanish.
Oh, I just reproduced this.
I don't see the scrollbars disappear under Debian mozilla 1.2.1, but I do see
other weird behavior - a horizontal scrollbar appearing for no reason, half the
text stops wrapping for no reason, etc.
I should also note that the mouse wheel does not work in any pseudo-frames with
position: fixed.
WFM in OS/2 trunk and W32 1.5.
Resolving WORKSFORME per comment 11. Please reopen if someone can still
reproduce this.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: