Fix width for toolbar items with dropdown when scalefactor >1.

This commit is contained in:
Paul Kulchenko
2019-10-12 10:34:57 -07:00
parent af0ad629ca
commit ba8cbf6027

View File

@@ -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);
}