Need an extra pixel or best size is incorrect when we have a divider (apparent with e.g. wxAUI)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -362,6 +362,9 @@ wxSize wxToolBar::DoGetBestSize() const
|
||||
sizeBest.y = size.cy;
|
||||
}
|
||||
|
||||
if (!IsVertical() && !(GetWindowStyle() & wxTB_NODIVIDER))
|
||||
sizeBest.y += 1;
|
||||
|
||||
CacheBestSize(sizeBest);
|
||||
|
||||
return sizeBest;
|
||||
|
Reference in New Issue
Block a user