diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index df5aadf89243..187ea2512f98 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1352,20 +1352,22 @@ static void ImplAddButtonBorder( long &rWidth, long& rHeight, bool bNativeButton bool ToolBox::ImplCalcItem() { - // recalc required ? if ( !mbCalc ) return false; ImplDisableFlatButtons(); + OutputDevice *pDefault = Application::GetDefaultDevice(); + float fScaleFactor = pDefault ? pDefault->GetDPIScaleFactor() : 1.0; + long nDefWidth; long nDefHeight; long nMaxWidth = 0; long nMaxHeight = 0; long nMinWidth = 6; long nMinHeight = 6; - long nDropDownArrowWidth = TB_DROPDOWNARROWWIDTH; + long nDropDownArrowWidth = TB_DROPDOWNARROWWIDTH * fScaleFactor; #ifdef IOS nDropDownArrowWidth *= 3; #endif |