Make wxToolBar tools rectangles taller under OS X
Apparently the tools get slightly cut off without this. See #16669.
This commit is contained in:
@@ -1454,7 +1454,7 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
wxSize toolSize = GetToolSize();
|
wxSize toolSize = GetToolSize();
|
||||||
WXWidget controlHandle = NULL;
|
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
|
#if wxOSX_USE_NATIVE_TOOLBAR
|
||||||
wxString label = tool->GetLabel();
|
wxString label = tool->GetLabel();
|
||||||
|
Reference in New Issue
Block a user