put back previous sizing of text fields due to changes in fixed width font

git-svn-id: svn://10.0.0.236/trunk@7749 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com 1998-08-11 19:07:25 +00:00
parent cef6bb6be9
commit 1a7586d04a

View File

@ -100,11 +100,10 @@ nscoord nsInputTextFrame::GetVerticalInsidePadding(float aPixToTwip,
#ifdef XP_PC
nsAutoString type;
((nsInput*)mContent)->GetType(type);
nscoord fudge = NSIntPixelsToTwips(2, aPixToTwip);
if (type.EqualsIgnoreCase("textarea")) {
return (nscoord)NSToIntRound(float(aInnerHeight) * 0.40f);
} else {
return (nscoord)NSToIntRound(float(aInnerHeight) * 0.20f) + fudge;
return (nscoord)NSToIntRound(float(aInnerHeight) * 0.25f);
}
#endif
#ifdef XP_UNIX