[Webkit-unassigned] [Bug 16789] Problem of using "size" attribute to determine width of text input field
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 10 02:41:03 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=16789
zsurocking at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsurocking at gmail.com
------- Comment #3 from zsurocking at gmail.com 2008-03-10 02:41 PDT -------
I think this bug lies in RenderTextControl::calcPrefWidths().
It's better to use tmAveCharWidth rather than "using 0 as the nominal
character"
Also, in order to match IE, Firefox use "tmAveCharWidth * size + tmMaxCharWidth
- 4" as the actual pixel width of the input text filed.
The code is here:
http://lxr.mozilla.org/mozilla/source/layout/forms/nsTextControlFrame.cpp
in nsTextControlFrame::CalcIntrinsicSize
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list