Bug 390696, scale thumb is too small on vista, use a hardcoded size, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@244999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
35650740a6
commit
4ba78bbbd1
@ -1521,7 +1521,20 @@ nsNativeThemeWin::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
|
||||
|
||||
if (aWidgetType == NS_THEME_SCALE_THUMB_HORIZONTAL ||
|
||||
aWidgetType == NS_THEME_SCALE_THUMB_VERTICAL) {
|
||||
*aIsOverridable = PR_FALSE;
|
||||
*aIsOverridable = PR_FALSE;
|
||||
// on Vista, GetThemePartAndState returns odd values for
|
||||
// scale thumbs, so use a hardcoded size instead.
|
||||
if (GetWindowsVersion() >= VISTA_VERSION) {
|
||||
if (aWidgetType == NS_THEME_SCALE_THUMB_HORIZONTAL) {
|
||||
aResult->width = 12;
|
||||
aResult->height = 20;
|
||||
}
|
||||
else {
|
||||
aResult->width = 20;
|
||||
aResult->height = 12;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
else if (aWidgetType == NS_THEME_TOOLBAR_SEPARATOR) {
|
||||
// that's 2px left margin, 2px right margin and 2px separator
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user