From: Vadim Zeitlin Date: Wed, 6 Jul 2005 21:57:21 +0000 (+0000) Subject: avoid moving the list control unnecessarily X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1f9a880ab84a9316052907634e4e57dd9401d7f?ds=inline avoid moving the list control unnecessarily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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