From ba8cbf6027920e8656ef0f5dd680614360f34379 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sat, 12 Oct 2019 10:34:57 -0700 Subject: [PATCH] Fix width for toolbar items with dropdown when scalefactor >1. --- src/aui/auibar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index 4f3a694382..3722a1b34f 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -634,7 +634,7 @@ wxSize wxAuiGenericToolBarArt::GetToolSize( // and add some extra space in front of the drop down button if (item.HasDropDown()) { - int dropdownWidth = wnd->FromDIP(GetElementSize(wxAUI_TBART_DROPDOWN_SIZE)); + int dropdownWidth = GetElementSize(wxAUI_TBART_DROPDOWN_SIZE); width += dropdownWidth + wnd->FromDIP(4); }