From 2bc61c55234368bc34a98ecdb5d0c6fb63d3ebdf Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Fri, 11 Jun 1999 00:28:00 +0000 Subject: [PATCH] Bug 7934: Calculate frameset percentage widths/heights correctly. git-svn-id: svn://10.0.0.236/trunk@34713 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrameSetFrame.cpp | 2 +- mozilla/layout/html/document/src/nsFrameSetFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsFrameSetFrame.cpp b/mozilla/layout/generic/nsFrameSetFrame.cpp index c1f2ab64257..1cba41c1f1d 100644 --- a/mozilla/layout/generic/nsFrameSetFrame.cpp +++ b/mozilla/layout/generic/nsFrameSetFrame.cpp @@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext, // allocate the percentage sizes from what is left over from the fixed allocation for (i = 0; i < numPercent; i++) { j = percent[i]; - aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)percentMax / 100.0f); + aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)aSize / 100.0f); percentTotal += aValues[j]; } diff --git a/mozilla/layout/html/document/src/nsFrameSetFrame.cpp b/mozilla/layout/html/document/src/nsFrameSetFrame.cpp index c1f2ab64257..1cba41c1f1d 100644 --- a/mozilla/layout/html/document/src/nsFrameSetFrame.cpp +++ b/mozilla/layout/html/document/src/nsFrameSetFrame.cpp @@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext, // allocate the percentage sizes from what is left over from the fixed allocation for (i = 0; i < numPercent; i++) { j = percent[i]; - aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)percentMax / 100.0f); + aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)aSize / 100.0f); percentTotal += aValues[j]; }