From a1f9a880ab84a9316052907634e4e57dd9401d7f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 6 Jul 2005 21:57:21 +0000 Subject: [PATCH] avoid moving the list control unnecessarily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listbkg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.2