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:
parent
cef6bb6be9
commit
1a7586d04a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user