From eb086b139a957054323b07808f41dc78f6c493a1 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Wed, 21 Nov 2001 14:42:00 +0000 Subject: [PATCH] bug 102784 - only start a row on another page if it doesn't fit on the current one if there is less than 5% of the current page space left. sr=attinasi, r=bernd git-svn-id: svn://10.0.0.236/trunk@108700 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp | 4 ++-- mozilla/layout/tables/nsTableRowGroupFrame.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp b/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp index a72011d9c3b..0ff5b7c8b07 100644 --- a/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp @@ -1013,8 +1013,8 @@ nsTableRowGroupFrame::SplitRowGroup(nsIPresContext* aPresContext, nsIFrame* contRowFrame = nsnull; nscoord pageHeight = actualRect.height; // reflow the row in the availabe space and have it split if it is the 1st - // row or there is at least 20% of the current page available - if (!prevRowFrame || (availHeight - aDesiredSize.height > pageHeight / 5)) { + // row or there is at least 5% of the current page available + if (!prevRowFrame || (availHeight - aDesiredSize.height > pageHeight / 20)) { // Reflow the row in the available space and have it split nsSize availSize(availWidth, availHeight - bounds.y); nsHTMLReflowState rowReflowState(aPresContext, aReflowState, rowFrame, diff --git a/mozilla/layout/tables/nsTableRowGroupFrame.cpp b/mozilla/layout/tables/nsTableRowGroupFrame.cpp index a72011d9c3b..0ff5b7c8b07 100644 --- a/mozilla/layout/tables/nsTableRowGroupFrame.cpp +++ b/mozilla/layout/tables/nsTableRowGroupFrame.cpp @@ -1013,8 +1013,8 @@ nsTableRowGroupFrame::SplitRowGroup(nsIPresContext* aPresContext, nsIFrame* contRowFrame = nsnull; nscoord pageHeight = actualRect.height; // reflow the row in the availabe space and have it split if it is the 1st - // row or there is at least 20% of the current page available - if (!prevRowFrame || (availHeight - aDesiredSize.height > pageHeight / 5)) { + // row or there is at least 5% of the current page available + if (!prevRowFrame || (availHeight - aDesiredSize.height > pageHeight / 20)) { // Reflow the row in the available space and have it split nsSize availSize(availWidth, availHeight - bounds.y); nsHTMLReflowState rowReflowState(aPresContext, aReflowState, rowFrame,