Bug 373433: views inside absolutely positioned blocks sometimes mispositioned. r+sr=roc.

This commit is contained in:
sharparrow1@yahoo.com 2007-03-27 23:14:03 -07:00
parent a6bf7e6912
commit 1cf7602a3e
4 changed files with 13 additions and 0 deletions

View File

@ -436,6 +436,7 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
aKidFrame->GetParent()->Invalidate(oldOverflowRect);
aKidFrame->GetParent()->Invalidate(kidDesiredSize.mOverflowArea +
rect.TopLeft());
nsContainerFrame::PositionChildViews(aKidFrame);
} else if (oldRect.Size() != rect.Size()) {
// Invalidate the area where the frame changed size.
nscoord innerWidth = PR_MIN(oldRect.width, rect.width);

View File

@ -0,0 +1,5 @@
<div style="position:relative; width:300px; height: 300px;">test
<script>
</script>
<div style="position:absolute; right:0;">
<input style="width: 200px" value="testtesttesttesttesttesttesttest">

View File

@ -0,0 +1,6 @@
<div style="position:relative; width:300px; height: 300px;">test
<script>
document.body.offsetHeight;
</script>
<div style="position:absolute; right:0;">
<input style="width: 200px" value="testtesttesttesttesttesttesttest">

View File

@ -202,3 +202,4 @@ fails == 368504-1.html 368504-1-ref.html # bug 368504
== 373381-1.html 373381-1-ref.html
== 372037-1.html 372037-1-ref.html
== 375508-1.html 375508-1-ref.html
== 373433-1.html 373433-1-ref.html