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
This commit is contained in:
@@ -145,7 +145,7 @@ wxSize wxListbook::GetListSize() const
|
|||||||
|
|
||||||
wxRect wxListbook::GetPageRect() const
|
wxRect wxListbook::GetPageRect() const
|
||||||
{
|
{
|
||||||
const wxSize sizeList = GetListSize();
|
const wxSize sizeList = m_list->GetSize();
|
||||||
|
|
||||||
wxRect rectPage(wxPoint(0, 0), GetClientSize());
|
wxRect rectPage(wxPoint(0, 0), GetClientSize());
|
||||||
switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
|
switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
|
||||||
@@ -209,7 +209,8 @@ void wxListbook::OnSize(wxSizeEvent& event)
|
|||||||
break;
|
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 )
|
if ( m_line )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user