Closed Bug 2748 Opened 26 years ago Closed 26 years ago

Switching alternate stylesheets causes viewport shift

Categories

(Core :: Layout, defect, P2)

Other
Windows 98
defect

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!
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)
QA Contact: 4110
setting qa_contact field.
Status: RESOLVED → VERIFIED
Using 2/11 build, verified fixed.
You need to log in before you can comment on or make changes to this bug.