Account for largest item in wxGenericListCtrl::GetBestSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:44:08 +0000 (10:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:44:08 +0000 (10:44 +0000)
commit3dea8ba7acb49948ccda20029655fd190a306298
tree89661664d2917c14b7f9ae569682049256396f75
parent89b799cccff2a3cfa5d51dac5c6e9153d2fe2e82
Account for largest item in wxGenericListCtrl::GetBestSize().

Don't just return a hard-coded value but at least return something big
enough to show the largest item in the control in non-report mode.

This fixes the appearance of wxListbook which simply truncated its items
before if they didn't fit in 80 pixels horizontally.

Also switch to implementing DoGetBestClientSize() instead of DoGetBestSize()
as this method doesn't account for the control borders (it does account for
the scrollbars however).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/listctrl.h
src/generic/listctrl.cpp