]> git.saurik.com Git - wxWidgets.git/commit
For large dataview controls, don't use all items to calculate best column width.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Oct 2010 15:57:59 +0000 (15:57 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Oct 2010 15:57:59 +0000 (15:57 +0000)
commit0645bd388cbd7c046c341adfcbe6a17ab2e3f77c
treef55495c3b42b8106164a5b40b24de988361bdff7
parentf0ccd2cbfa0b4ac110b81626da5a184b650b1080
For large dataview controls, don't use all items to calculate best column width.

Instead, use just top and bottom N/2 items for some large enough value
of N. N is determined dynamically so that column best width calculation
doesn't take more than 50ms.

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