Applied patch [ 651649 ] Scrollbar not updated without resizing
authorJulian Smart <julian@anthemion.co.uk>
Tue, 10 Dec 2002 21:50:11 +0000 (21:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 10 Dec 2002 21:50:11 +0000 (21:50 +0000)
commit03d1ae179905c0bdc720cd1c444a557f1e7a044b
tree679aae9259a39650c283a6dfcd820a53fff3020a
parentf0e1c34310483f82473c56f4ea8f151d441a0a41
Applied patch [ 651649 ] Scrollbar not updated without resizing

I always wondered why the scrollbar of the listbox or
the log window (textctrl) never showed a thumb in the
control sample while the combobox does. The
AdjustScrollbars gets called through a size event and
this happens before the listbox (textctrl) can set the
values for the scrollbar. So always an empty scrollbar
is shown. This patch calls AdjustScrollbars at the end
of SetScrollbars in scrlwing.cpp.

I'm not sure if this is the best fix but it works
nicely. I've only tested it with wxUniv but it should
be okay in any generic case.

(applied for __WXUNIVERSAL__ only for now -- JACS)

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