Fix scrolling in small wxVListBox with tall items.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:08:10 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Sep 2011 15:08:10 +0000 (15:08 +0000)
commit7d0cf3f9be68172d67ed1e82975ea5f080989a33
tree7c2c0a1e6f39c33f12ee46d128ea3a446d4b12a7
parentd7b3992a5f92ab87a26aeb77cbee2184f0e5432c
Fix scrolling in small wxVListBox with tall items.

Scrolling in a small wxVListBox with tall items (i.e. taller than the height
of wxVListBox itself) behaved wrongly: wrong item was being scrolled into view
and Page Up/Down didn't scroll as much as they should.

Fix both of these problems by checking for these corner cases explicitly.

Closes #13454.

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