fix select widget rendering when using thebes/cairo. b=360214 r=mento sr=pav

This commit is contained in:
joshmoz%gmail.com 2006-11-10 21:03:27 +00:00
parent 3b5bce9809
commit 2fc50a28a8

View File

@ -552,6 +552,13 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
case eMetric_DragThresholdY:
aMetric = 4;
break;
case eMetric_ScrollbarWidth:
// It would be nice to use the native metric function, but we have always
// used 16 before and it returns 15. We should make the change, but with a
// complete audit to make sure things match up.
// ::GetThemeMetric(kThemeMetricScrollBarWidth, (SInt32*)&aMetric);
aMetric = 16;
break;
case eMetric_ScrollArrowStyle:
ThemeScrollBarArrowStyle arrowStyle;
::GetThemeScrollBarArrowStyle ( &arrowStyle );