This commit is contained in:
pinkerton%netscape.com 2005-08-20 07:12:46 +00:00
Родитель d947f798e6
Коммит cf94e62e94
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -929,12 +929,14 @@ nsNativeThemeMac::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
break; break;
case NS_THEME_TEXTFIELD: case NS_THEME_TEXTFIELD:
{
// at minimum, we should be tall enough for 9pt text. // at minimum, we should be tall enough for 9pt text.
SInt32 shadow = 0, frameOutset = 0; SInt32 shadow = 0, frameOutset = 0;
::GetThemeMetric(kThemeMetricEditTextWhitespace, &shadow); ::GetThemeMetric(kThemeMetricEditTextWhitespace, &shadow);
::GetThemeMetric(kThemeMetricEditTextFrameOutset, &frameOutset); ::GetThemeMetric(kThemeMetricEditTextFrameOutset, &frameOutset);
aResult->SizeTo(0, (shadow + frameOutset) * 2 + 9); aResult->SizeTo(0, (shadow + frameOutset) * 2 + 9);
break; break;
}
case NS_THEME_PROGRESSBAR: case NS_THEME_PROGRESSBAR:
{ {