From: Vadim Zeitlin Date: Sun, 14 Sep 2003 19:03:17 +0000 (+0000) Subject: GePageRect() should use the full list size while OnSize() should use the client size X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ae03fa2c9610d107a0d902622a93f17fa04aebf0 GePageRect() should use the full list size while OnSize() should use the client size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 6b5f08b442..88d84cee38 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -145,7 +145,7 @@ wxSize wxListbook::GetListSize() const wxRect wxListbook::GetPageRect() const { - const wxSize sizeList = GetListSize(); + const wxSize sizeList = m_list->GetSize(); wxRect rectPage(wxPoint(0, 0), GetClientSize()); switch ( GetWindowStyle() & wxLB_ALIGN_MASK ) @@ -209,7 +209,8 @@ void wxListbook::OnSize(wxSizeEvent& event) break; } - m_list->SetSize(posList.x, posList.y, sizeList.x, sizeList.y); + m_list->Move(posList.x, posList.y); + m_list->SetClientSize(sizeList.x, sizeList.y); if ( m_line ) {