Account correctly for the controller when computing wxBookCtrl best size.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 12:47:40 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 12:47:40 +0000 (12:47 +0000)
commit6c51ca3750d48a276ae05aaa8b0a62e653dc277d
tree8dabbedad5c3cd7dddb03475a0af00e3aebbf4ed
parent602af335e44205356aef7b30c52640040dcae207
Account correctly for the controller when computing wxBookCtrl best size.

We must not increase the total control size in the direction along the
controller window as the size of the controller in this direction is
determined by the size of the control itself. So doing this resulted in always
increasing best size in this direction to be at least equal to the current
size which was wrong.

Closes #14496.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/bookctrl.cpp