From dfbaed5604c94cce695e14e6fa463688b74ddf83 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Sun, 5 Dec 1999 20:47:04 +0000 Subject: [PATCH] was adding in the wrong border and padding for fixed width r=self b 18448 --- layout/html/forms/src/nsGfxTextControlFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/html/forms/src/nsGfxTextControlFrame.cpp b/layout/html/forms/src/nsGfxTextControlFrame.cpp index cba1a1cbd64e..fe03a9402efa 100644 --- a/layout/html/forms/src/nsGfxTextControlFrame.cpp +++ b/layout/html/forms/src/nsGfxTextControlFrame.cpp @@ -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;