X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0335f6f746068090e7877bc556bbb5d6f184991e..4d01e350fe2d8cb15c068d579c4022345f3ff0c0:/src/common/bookctrl.cpp diff --git a/src/common/bookctrl.cpp b/src/common/bookctrl.cpp index 553ee11ffd..bf8a833434 100644 --- a/src/common/bookctrl.cpp +++ b/src/common/bookctrl.cpp @@ -46,10 +46,6 @@ void wxBookCtrl::Init() { m_imageList = NULL; m_ownsImageList = false; - // Unlike most controls, we don't want to adjust the min size - // when we set the font, since the page size is not related to - // the font size. - m_adjustMinSize = false; } bool @@ -134,7 +130,9 @@ wxSize wxBookCtrl::DoGetBestSize() const // convert display area to window area, adding the size neccessary for the // tabs - return CalcSizeFromPage(bestSize); + wxSize best = CalcSizeFromPage(bestSize); + CacheBestSize(best); + return best; } // ----------------------------------------------------------------------------