avoid moving the list control unnecessarily

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-07-06 21:57:21 +00:00
parent 9f22b00e34
commit a1f9a880ab

View File

@@ -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