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:
@@ -241,7 +241,8 @@ void wxListbook::OnSize(wxSizeEvent& event)
|
|||||||
// vertical and horizontal scrollbar (with one of them being added because
|
// vertical and horizontal scrollbar (with one of them being added because
|
||||||
// the other one is not accounted for in client size computations)
|
// the other one is not accounted for in client size computations)
|
||||||
m_list->Arrange();
|
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);
|
m_list->SetClientSize(sizeList.x, sizeList.y);
|
||||||
|
|
||||||
#if wxUSE_LINE_IN_LISTBOOK
|
#if wxUSE_LINE_IN_LISTBOOK
|
||||||
|
Reference in New Issue
Block a user