Fix incremental reflow bug

This commit is contained in:
kipp@netscape.com
1998-07-16 22:15:02 +00:00
parent 30b1eb56b6
commit 2cf28670a1
2 changed files with 16 additions and 0 deletions

View File

@@ -276,6 +276,14 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
if (NS_UNCONSTRAINEDSIZE!=availSize.height)
availSize.height -= topInset+bottomInset+margin.top+margin.bottom;
// XXX Kipp added this hack
if (eReflowReason_Incremental == aReflowState.reason) {
// XXX We *must* do this otherwise incremental reflow that's
// passing through will not work right.
nsIFrame* next;
aReflowState.reflowCommand->GetNext(next);
}
// Try to reflow the child into the available space. It might not
// fit or might need continuing.
if (availSize.height < 0)