Make sure we include the overflow area in the size of views, for blocks and inlines, at least. b=79315 r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@145090 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2003-07-23 00:14:16 +00:00
parent f59b27219a
commit 75df55b0bf
8 changed files with 74 additions and 152 deletions

View File

@@ -710,6 +710,9 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
// If the frame has child frames that stick outside the content
// area, then size the view large enough to include those child
// frames
NS_ASSERTION(!(aFrame->GetStateBits() & NS_FRAME_OUTSIDE_CHILDREN) ||
aCombinedArea,
"resizing view for frame with overflow to the wrong size");
if ((aFrame->GetStateBits() & NS_FRAME_OUTSIDE_CHILDREN) && aCombinedArea) {
vm->ResizeView(aView, *aCombinedArea, PR_TRUE);
} else {