зеркало из https://github.com/mozilla/gecko-dev.git
Bug 7934: Calculate frameset percentage widths/heights correctly.
This commit is contained in:
Родитель
7c4741fca1
Коммит
11376c79a8
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче