Fix bug 387154 -- rendering of narrow buttons (for which we need to scoot the

text over to the left) regressed.  r+sr=dbaron
This commit is contained in:
2007-07-06 17:48:29 -07:00
parent 859a385b24
commit cee90f607b
4 changed files with 72 additions and 2 deletions

View File

@@ -347,7 +347,6 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
// Indent the child inside us by the focus border. We must do this separate
// from the regular border.
availSize.width -= aFocusPadding.LeftRight();
availSize.width = PR_MAX(availSize.width,0);
// See whether out availSize's width is big enough. If it's smaller than our
// intrinsic min width, that means that the kid wouldn't really fit; for a
@@ -367,6 +366,7 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
xoffset -= extraleft;
availSize.width += extraleft + extraright;
}
availSize.width = PR_MAX(availSize.width,0);
nsHTMLReflowState reflowState(aPresContext, aReflowState, aFirstKid,
availSize);