was adding in the wrong border and padding for fixed width

r=self b 18448
This commit is contained in:
rods%netscape.com 1999-12-05 20:47:04 +00:00
Родитель a15c550545
Коммит cbdbb04ceb
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1330,10 +1330,10 @@ nsGfxTextControlFrame::ReflowNavQuirks(nsIPresContext* aPresContext,
heightExplicit, ignore, aBorder, aPadding);
}
if (widthExplicit) {
desiredSize.width += aReflowState.mComputedBorderPadding.top + aReflowState.mComputedBorderPadding.bottom;
desiredSize.width += aReflowState.mComputedBorderPadding.left + aReflowState.mComputedBorderPadding.right;
}
if (heightExplicit) {
desiredSize.height += aReflowState.mComputedBorderPadding.left + aReflowState.mComputedBorderPadding.right;
desiredSize.height += aReflowState.mComputedBorderPadding.top + aReflowState.mComputedBorderPadding.bottom;
}
aDesiredSize.width = desiredSize.width;