Implement wxBookCtrlBase::CalcSizeFromPage() in the base class.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Mar 2010 23:55:19 +0000 (23:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Mar 2010 23:55:19 +0000 (23:55 +0000)
commit175363f6b89e94e6d5f7dc39235fbc3f2989d763
tree46b0b928fa55dfcac24a4d976db4066eb6b93d49
parent76680db44a7bd78faa1dadf5bc71150f4d77fc6c
Implement wxBookCtrlBase::CalcSizeFromPage() in the base class.

The definition of this method was needlessly duplicated in all of
wx{Choice,List,Tool,Tree}book and in all of them except the first one it
didn't account correctly for the case when the size of the controller was
greater than the size of the page.

Avoid the duplication and fix the best size determination in such case by
providing a single, correct version of the function in the base class itself.

Closes #11793.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/bookctrl.h
include/wx/choicebk.h
include/wx/listbook.h
include/wx/toolbook.h
include/wx/treebook.h
src/common/bookctrl.cpp
src/generic/choicbkg.cpp
src/generic/listbkg.cpp
src/generic/toolbkg.cpp
src/generic/treebkg.cpp