зеркало из https://github.com/mozilla/pjs.git
was adding in the wrong border and padding for fixed width
r=self b 18448
This commit is contained in:
Родитель
a15c550545
Коммит
cbdbb04ceb
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче