From 1661f277d546e816fda51f98394f1c9bb58cc285 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Feb 2019 23:23:15 +0100 Subject: [PATCH] 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. --- src/msw/toolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index e868bb6668..a9e436f25d 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -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; }