diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 9f29e7423b..220a6cc025 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -165,8 +165,14 @@ void wxListbook::OnSize(wxSizeEvent& event) // the other one is not accounted for in client size computations) wxListView * const list = GetListView(); if ( list ) + { list->Arrange(); + const int sel = GetSelection(); + if ( sel != wxNOT_FOUND ) + list->EnsureVisible(sel); + } + event.Skip(); }