Fix wxGenericListCtrl best size calculation in report view.

Just let the base class do it instead of using hard coded default value in
wxGenericListCtrl::DoGetBestClientSize().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-05-09 14:24:54 +00:00
parent f797518e8f
commit 902b679a45

View File

@ -5149,8 +5149,8 @@ void wxGenericListCtrl::DoScreenToClient( int *x, int *y ) const
wxSize wxGenericListCtrl::DoGetBestClientSize() const wxSize wxGenericListCtrl::DoGetBestClientSize() const
{ {
// Something is better than nothing even if this is completely arbitrary. // The base class version can compute the best size in report view only.
wxSize sizeBest(100, 80); wxSize sizeBest = wxListCtrlBase::DoGetBestClientSize();
if ( !InReportView() ) if ( !InReportView() )
{ {