From 902b679a455b146555607d6123cf8b9159c39888 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 May 2012 14:24:54 +0000 Subject: [PATCH] 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 --- src/generic/listctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 834eac9ac3..d76348f29b 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5149,8 +5149,8 @@ void wxGenericListCtrl::DoScreenToClient( int *x, int *y ) const wxSize wxGenericListCtrl::DoGetBestClientSize() const { - // Something is better than nothing even if this is completely arbitrary. - wxSize sizeBest(100, 80); + // The base class version can compute the best size in report view only. + wxSize sizeBest = wxListCtrlBase::DoGetBestClientSize(); if ( !InReportView() ) {