Fixed mac event bug.

Fixed alignment bug.
This commit is contained in:
evaughan@netscape.com
1999-03-03 04:04:48 +00:00
parent 64a5a848fa
commit e9263c1982
3 changed files with 9 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ nsButtonFrameRenderer::HandleEvent(nsIPresContext& aPresContext,
break;
}
aEventStatus = nsEventStatus_eConsumeNoDefault;
//aEventStatus = nsEventStatus_eConsumeNoDefault;
return NS_OK;
}
@@ -584,6 +584,9 @@ nsButtonFrameRenderer::AddFocusBordersAndPadding(nsIPresContext& aPresContext,
aMetrics.width += aBorderPadding.left + aBorderPadding.right;
aMetrics.height += aBorderPadding.top + aBorderPadding.bottom;
aMetrics.ascent = aMetrics.height;
aMetrics.descent = 0;
// printf("requested width='%d' height='%d'\n",aMetrics.width, aMetrics.height);
}