diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index a9e436f25d..7654ab8106 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -597,14 +597,6 @@ wxSize wxToolBar::DoGetBestSize() const sizeBest.IncTo(wxSize(-1, MSWGetFittingtSizeForControl(tool).y)); } } - - // Without the extra height, DoGetBestSize can report a size that's - // smaller than the actual window, causing windows to overlap slightly - // in some circumstances, leading to missing borders (especially noticeable - // in AUI layouts). - if (!(GetWindowStyle() & wxTB_NODIVIDER)) - sizeBest.y += 2; - sizeBest.y ++; } return sizeBest;