bug 37791 - calculate auto margins during an incremental reflow.

git-svn-id: svn://10.0.0.236/trunk@68238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2000-05-04 14:49:35 +00:00
parent 20cec33497
commit 2a4c3e66cc
4 changed files with 18 additions and 4 deletions

View File

@@ -2960,6 +2960,9 @@ NS_METHOD nsTableFrame::ReflowMappedChildren(nsIPresContext* aPresContext
// Reflow the child into the available space
nsHTMLReflowState kidReflowState(aPresContext, aReflowState.reflowState,
kidFrame, kidAvailSize, reason);
// XXX fix up bad mComputedWidth for scroll frame
kidReflowState.mComputedWidth = PR_MAX(kidReflowState.mComputedWidth, 0);
if (aReflowState.firstBodySection && (kidFrame != aReflowState.firstBodySection)) {
// If this isn't the first row group frame or the header or footer, then
// we can't be at the top of the page anymore...