]> git.saurik.com Git - wxWidgets.git/commit - src/msw/listbox.cpp
Invalidate wxListBox best size immediately without waiting for idle time.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 May 2010 10:28:01 +0000 (10:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 May 2010 10:28:01 +0000 (10:28 +0000)
commit316bba0c7207ceff140d0d8271962ad7c001ba8a
treeac1ed4e710cba6c1543bc101965403e65e4a94b1
parent1544ba0edc8d1791d1d3a79bb0451831d0408051
Invalidate wxListBox best size immediately without waiting for idle time.

Since r53743 the listbox best size was only invalidated during idle time but
this meant that it could be laid out using incorrect old best size. So while
we still defer (expensive) horizontal extent calculation until later, do
invalidate the best size immediately to ensure the listbox is laid out
correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/listbox.h
src/msw/listbox.cpp