Show the first, not the last, inserted item in wxListBox in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:42:49 +0000 (21:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:42:49 +0000 (21:42 +0000)
commitf58438058b1a0b0d5266c8ca6acafcbbfda27ed4
tree5a4c0ba40d9cc6c03558d123987192ac22ac654b
parentb2b6121609d8837053d3461b5089b1e35e557801
Show the first, not the last, inserted item in wxListBox in wxOSX.

The listbox showed its last, not first, item after creation in wxOSX which was
inconsistent with the other ports and generally inconvenient.

Fix this by ensuring that the first item being inserted is shown, and not the
last one as was (implicitly) the case before. A better fix would be to avoid
scrolling entirely but I don't know how to do this with NSClipView.

Closes #12365.

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