From d4edf57781bd94d17f11ed25399430b4c332ef6e Mon Sep 17 00:00:00 2001 From: sbrowne Date: Tue, 23 Feb 2016 01:46:45 +0100 Subject: [PATCH] Make wxToolBar tools rectangles taller under OS X Apparently the tools get slightly cut off without this. See #16669. --- src/osx/cocoa/toolbar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/toolbar.mm b/src/osx/cocoa/toolbar.mm index 2ab7cdaaa0..c449501144 100644 --- a/src/osx/cocoa/toolbar.mm +++ b/src/osx/cocoa/toolbar.mm @@ -1454,7 +1454,7 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase) wxSize toolSize = GetToolSize(); WXWidget controlHandle = NULL; - NSRect toolrect = NSMakeRect(0, 0, toolSize.x, toolSize.y ); + NSRect toolrect = NSMakeRect(0, 0, toolSize.x, toolSize.y + 2 ); #if wxOSX_USE_NATIVE_TOOLBAR wxString label = tool->GetLabel();