do not compare with a unconstrained size, bug 390049 r/sr=roc a=mtschrep

This commit is contained in:
bmlk@gmx.de 2008-01-19 22:42:31 -08:00
parent d4884cc771
commit b87613ce0a

View File

@ -1286,7 +1286,8 @@ nsTableRowGroupFrame::Reflow(nsPresContext* aPresContext,
// not paginated ... we can't split across columns yet.
if (aReflowState.mFlags.mTableIsSplittable &&
(NS_FRAME_NOT_COMPLETE == aStatus || splitDueToPageBreak ||
aDesiredSize.height > aReflowState.availableHeight)) {
(NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight &&
aDesiredSize.height > aReflowState.availableHeight))) {
// Nope, find a place to split the row group
PRBool specialReflow = (PRBool)aReflowState.mFlags.mSpecialHeightReflow;
((nsHTMLReflowState::ReflowStateFlags&)aReflowState.mFlags).mSpecialHeightReflow = PR_FALSE;