Closed
Bug 2748
Opened 26 years ago
Closed 26 years ago
Switching alternate stylesheets causes viewport shift
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: ian, Assigned: troy)
References
()
Details
Go to any page providing multiple alternate stylesheets.
Everytime you change stylesheet, the viewport shifts down by the number of
pixels that you are from the top of the document.
It seems that after switching stylesheets, the display code thinks that the
view has shifted back to the top of the document (as in a reload) and so
wants to shift it back down. Unfortunately, the view has *not* shifted to the
top of the document, and so we end up going down past where we were before the
change!
Updated•26 years ago
|
Assignee: peterl → troy
Status: NEW → RESOLVED
Closed: 26 years ago
Component: Style System → Layout
Resolution: --- → FIXED
The shift problem has been fixed. It was a problem in the view code.
Now what happens is that the scrollbar is reset to the top. That's a result of
how things are currently implemented internally, rather than an explicit
design choice (what we do is we remove the document element's frame and then
insert a new hierarchy--as two separate steps--rather than treat it as a single
replacement operation, which is why scrolling is reset)
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•26 years ago
|
||
Using 2/11 build, verified fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•