]> git.saurik.com Git - wxWidgets.git/commit
Improve column auto-sizing code in generic wxListCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2012 15:09:54 +0000 (15:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2012 15:09:54 +0000 (15:09 +0000)
commit3d167c0022e409c541a987a23352882445b29819
tree1008c6b35c6739af8955ab41910ab74a13a239a3
parent0fb731b8bf830e2b495b2038200ab1d2444d748d
Improve column auto-sizing code in generic wxListCtrl.

Take the width of the header itself into account when setting width to
wxLIST_AUTOSIZE.

Also refactor the code to reuse the code used in wxLIST_AUTOSIZE_USEHEADER
case in SetColumnWidth() when inserting or updating the column width to this
value.

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