mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
was adding in the wrong border and padding for fixed width
r=self b 18448
This commit is contained in:
parent
1fb0151a66
commit
dfbaed5604
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user