copy/paste coding error - simple change from Height to Width

Bug 67497 sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@86997 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2001-02-14 15:40:26 +00:00
parent dec26c03ce
commit ac4b548c62
2 changed files with 2 additions and 2 deletions

View File

@@ -685,7 +685,7 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext* aPresContext,
// center child horizontally
nscoord xoff = 0;
if (aReflowState.mComputedHeight != NS_INTRINSICSIZE) {
if (aReflowState.mComputedWidth != NS_INTRINSICSIZE) {
xoff = (aReflowState.mComputedWidth - aDesiredSize.width)/2;
if (xoff < 0) {
xoff = 0;