Calculate better height for toolbar (add borders)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0a1390c7d8
commit
4f6b4292aa
@ -350,6 +350,7 @@ wxSize wxToolBar::DoGetBestSize() const
|
||||
// maybe an old (< 0x400) Windows version? try to approximate the
|
||||
// toolbar size ourselves
|
||||
sizeBest = GetToolSize();
|
||||
sizeBest.y += 2 * ::GetSystemMetrics(SM_CYBORDER); // Add borders
|
||||
sizeBest.x *= GetToolsCount();
|
||||
|
||||
// reverse horz and vertical components if necessary
|
||||
|
Loading…
Reference in New Issue
Block a user