X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a19fb6e5fca677fb8175b77bc284ed81bfb9ce1..4979a56c780fceaa115d055d3c09f5980531c5d3:/src/generic/listbkg.cpp diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index e3208c2611..fdbe49e578 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -241,7 +241,8 @@ void wxListbook::OnSize(wxSizeEvent& event) // vertical and horizontal scrollbar (with one of them being added because // the other one is not accounted for in client size computations) m_list->Arrange(); - m_list->Move(posList.x, posList.y); + if ( m_list->GetPosition() != posList ) + m_list->Move(posList.x, posList.y); m_list->SetClientSize(sizeList.x, sizeList.y); #if wxUSE_LINE_IN_LISTBOOK