Bug 430212: not enough padding on textbox and textarea widgets on Vista, patch by Mike Beltzner <beltzner@mozilla.com>, r+a=vlad

This commit is contained in:
gavin%gavinsharp.com 2008-04-22 19:56:10 +00:00
Родитель 8cc7357a88
Коммит e6526e98ba
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -1534,15 +1534,15 @@ nsNativeThemeWin::GetWidgetPadding(nsIDeviceContext* aContext,
}
if (mIsVistaOrLater) {
/* textfields need an extra pixel on all sides, otherwise they
/* textfields need extra pixels on all sides, otherwise they
* wrap their content too tightly. The actual border is drawn 1px
* inside the specified rectangle, so Gecko will end up making the
* contents look too small. Instead, we add 1px padding for the
* contents and fix this.
* contents look too small. Instead, we add 2px padding for the
* contents and fix this. (Used to be 1px added, see bug 430212)
*/
if (aWidgetType == NS_THEME_TEXTFIELD || aWidgetType == NS_THEME_TEXTFIELD_MULTILINE) {
aResult->top = aResult->bottom = 1;
aResult->left = aResult->right = 1;
aResult->top = aResult->bottom = 2;
aResult->left = aResult->right = 2;
return PR_TRUE;
}
}