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:
parent
1f1d370348
commit
2bc61c5523
@ -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];
|
||||
}
|
||||
|
||||
|
||||
@ -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];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user