check in for rod spears. Fix the small text edit fields for dynamic to in the compose window

and password dialogs
This commit is contained in:
mscott@netscape.com
1999-09-01 04:11:17 +00:00
parent 0491259ca5
commit 2e51a263d4
2 changed files with 8 additions and 4 deletions

View File

@@ -308,12 +308,14 @@ nsFormControlHelper::CalculateSize (nsIPresContext* aPresContext,
if (PR_TRUE == requiresWidget || eWidgetRendering_Native == mode ||
type==NS_FORM_INPUT_TEXT || type==NS_FORM_TEXTAREA || type==NS_FORM_INPUT_PASSWORD)
{
if (!aWidthExplicit && mode == eWidgetRendering_Native) {
// if (!aWidthExplicit && mode == eWidgetRendering_Native) {
if (!aWidthExplicit) {
PRInt32 hPadding = (2 * aFrame->GetHorizontalInsidePadding(*aPresContext, p2t, aDesiredSize.width, charWidth));
aDesiredSize.width += hPadding;
aMinSize.width += hPadding;
}
if (!aHeightExplicit && mode == eWidgetRendering_Native) {
// if (!aHeightExplicit && mode == eWidgetRendering_Native) {
if (!aHeightExplicit) {
PRInt32 vPadding = (2 * aFrame->GetVerticalInsidePadding(p2t, aRowHeight));
aDesiredSize.height += vPadding;
aMinSize.height += vPadding;