Bug 7934: Calculate frameset percentage widths/heights correctly.

git-svn-id: svn://10.0.0.236/trunk@34713 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 1999-06-11 00:28:00 +00:00
parent 1f1d370348
commit 2bc61c5523
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext,
// allocate the percentage sizes from what is left over from the fixed allocation // allocate the percentage sizes from what is left over from the fixed allocation
for (i = 0; i < numPercent; i++) { for (i = 0; i < numPercent; i++) {
j = percent[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]; percentTotal += aValues[j];
} }

View File

@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext,
// allocate the percentage sizes from what is left over from the fixed allocation // allocate the percentage sizes from what is left over from the fixed allocation
for (i = 0; i < numPercent; i++) { for (i = 0; i < numPercent; i++) {
j = percent[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]; percentTotal += aValues[j];
} }