Bug 373381: Rendering of radios/checkboxes with auto width has regressed. r+sr=roc.

git-svn-id: svn://10.0.0.236/trunk@221862 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2007-03-14 02:47:05 +00:00
parent 7edf233b14
commit 33a123151f
4 changed files with 17 additions and 4 deletions

View File

@@ -80,15 +80,19 @@ nsFormControlFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
nscoord
nsFormControlFrame::GetIntrinsicWidth()
{
// Actual width is set in forms.css
return 0;
// Provide a reasonable default for sites that use an "auto" height.
// Note that if you change this, you should change the values in forms.css
// as well. This is the 13px default width minus the 2px default border.
return nsPresContext::CSSPixelsToAppUnits(13 - 2 * 2);
}
nscoord
nsFormControlFrame::GetIntrinsicHeight()
{
// Actual width is set in forms.css
return 0;
// Provide a reasonable default for sites that use an "auto" height.
// Note that if you change this, you should change the values in forms.css
// as well. This is the 13px default width minus the 2px default border.
return nsPresContext::CSSPixelsToAppUnits(13 - 2 * 2);
}
NS_METHOD