From 7c706b6e3c84a763052a72d9e3a37544d27fe048 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Fri, 5 Sep 2003 20:20:40 +0000 Subject: [PATCH] Workaround for oscillating splitter in mailnews (bug 201379). r=varga, sr=mscott, a=sspitzer. --- gfx/src/windows/nsNativeThemeWin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/src/windows/nsNativeThemeWin.cpp b/gfx/src/windows/nsNativeThemeWin.cpp index 9634c6b39883..8d30d8cebd31 100644 --- a/gfx/src/windows/nsNativeThemeWin.cpp +++ b/gfx/src/windows/nsNativeThemeWin.cpp @@ -1348,7 +1348,11 @@ nsNativeThemeWin::ClassicGetMinimumWidgetSize(nsIRenderingContext* aContext, nsI *aIsOverridable = PR_FALSE; break; case NS_THEME_SCROLLBAR_TRACK_VERTICAL: - (*aResult).height = ::GetSystemMetrics(SM_CYVTHUMB) << 1; + // XXX HACK We should be able to have a minimum height for the scrollbar + // track. However, this causes problems when uncollapsing a scrollbar + // inside a tree. See bug 201379 for details. + + // (*aResult).height = ::GetSystemMetrics(SM_CYVTHUMB) << 1; break; case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL: (*aResult).width = ::GetSystemMetrics(SM_CXHTHUMB) << 1;