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
This commit is contained in:
karnaze%netscape.com
2001-11-21 14:42:00 +00:00
parent 52eaf06781
commit eb086b139a
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,