Only use packing in horizontal direction for toolbar controls

Tool packing seems to be relevant only in the major toolbar direction,
i.e. horizontally when the controls are shown, and adding it in vertical
direction too made the toolbar too tall.
This commit is contained in:
Vadim Zeitlin
2019-02-28 23:23:15 +01:00
parent 385ebf2f4a
commit 1661f277d5

View File

@@ -540,7 +540,7 @@ wxSize wxToolBar::MSWGetFittingtSizeForControl(wxToolBarTool* tool) const
}
// Also account for the tool padding value.
size += wxSize(m_toolPacking, m_toolPacking);
size.x += m_toolPacking;
return size;
}