Closed Bug 1756 Opened 26 years ago Closed 26 years ago

Error in reflow when document is scrolled

Categories

(Core :: Layout, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: joki, Assigned: troy)

Details

When adding new content which causes the document size to change (and therefore scrollbars to resize), we redraw poorly if the document scroll position is not set to its base position. Using the following content from bug 1309, clicking on the visible paragraph causes creation of additional paragraphs which expand the document. If the document has not yet been scrolled it works. But if you've first resized the window to get a vertical scrollbar, and then scrolled down at all, the reflow generated by the addition of the paragraphs causes bad redraws. <html> <head> <script> function handle(e) { var myp = document.createElement("P"); var mytext = document.createTextNode(e.type); myp.appendChild(mytext); document.getElementsByTagName("BODY")[0].appendChild(myp); } </script> </head> <body> <p onmousedown="handle(event)" style="position: absolute; left:200px; top:200px; width: 150px; background-color: #cccccc;"> The event will appear in a unique paragraph for each mousedown event. Press your mouse down on me to try it. </p> </body> </html>
Assignee: kipp → michaelp
Either michael or troy should wack this one...thanks...
Assignee: michaelp → troy
can you look at this first and see if layout's the culprit?
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed as a side effect of my changes to have scrolling occur on the HTML element instead of the BODY element
Status: RESOLVED → VERIFIED
QA Contact: 4144
Summary: Error in reflow when document is scrolled → Error in reflow when document is scrolled
Fixed in Feb Build 5th
You need to log in before you can comment on or make changes to this bug.