Correct implement wxLIST_AUTOSIZE_XXX in the generic wxListCtrl.
Use both the contents and the header width when wxLIST_AUTOSIZE_USEHEADER is given instead of just the latter. Also make both wxLIST_AUTOSIZE_USEHEADER and the previously implemented wxLIST_AUTOSIZE work efficiently for the virtual list controls by reusing wxMaxWidthCalculatorBase already used in the generic wxDataViewCtrl. Closes #10326. (this is a backport ofde7e315557
and0e2d9e539c
from master)
This commit is contained in:
committed by
Vadim Zeitlin
parent
c21ad5d9c2
commit
b64e030f0c
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_DATAVIEWCTRL
|
||||
#if wxUSE_DATAVIEWCTRL || wxUSE_LISTCTRL
|
||||
|
||||
#include "wx/timer.h"
|
||||
|
||||
@@ -117,6 +117,6 @@ private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxMaxWidthCalculatorBase);
|
||||
};
|
||||
|
||||
#endif // wxUSE_DATAVIEWCTRL
|
||||
#endif // wxUSE_DATAVIEWCTRL || wxUSE_LISTCTRL
|
||||
|
||||
#endif // _WX_GENERIC_PRIVATE_WIDTHCALC_H_
|
||||
|
Reference in New Issue
Block a user