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

Bug 67497 sr=attinasi
This commit is contained in:
rods%netscape.com 2001-02-14 15:40:26 +00:00
parent fa5531f56e
commit 84cce45360
2 changed files with 2 additions and 2 deletions

View File

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

View File

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