summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-10-14 15:29:19 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-10-14 15:29:19 +0000
commit0a0a041862d4960b6d9ec81380a67e2ca7b7ed42 (patch)
tree03f5fd5909c38b7e5afd04268293136780082f85 /vcl/win
parent407c4b1a36209d0b95c8ccf7a39c5f205eed99cd (diff)
#99956# restrict max scrollbarsize to 20pixels
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/window/salframe.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 991e681db8c4..8be65b1cf682 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salframe.cxx,v $
*
- * $Revision: 1.69 $
+ * $Revision: 1.70 $
*
- * last change: $Author: ssa $ $Date: 2002-10-14 15:32:34 $
+ * last change: $Author: ssa $ $Date: 2002-10-14 16:29:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2508,8 +2508,8 @@ void SalFrame::UpdateSettings( AllSettings& rSettings )
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
BOOL bCompBorder = (aStyleSettings.GetOptions() & (STYLE_OPTION_MACSTYLE | STYLE_OPTION_UNIXSTYLE)) == 0;
- aStyleSettings.SetScrollBarSize( GetSystemMetrics( SM_CXVSCROLL ) );
- aStyleSettings.SetSpinSize( GetSystemMetrics( SM_CXVSCROLL ) );
+ aStyleSettings.SetScrollBarSize( std::min( GetSystemMetrics( SM_CXVSCROLL ), 20 ) ); // #99956# do not allow huge scrollbars, most of the UI is not scaled anymore
+ aStyleSettings.SetSpinSize( std::min( GetSystemMetrics( SM_CXVSCROLL ), 20 ) );
aStyleSettings.SetCursorBlinkTime( GetCaretBlinkTime() );
if ( bCompBorder )
{