fixes for the list ctrl layout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,8 +137,8 @@ wxSize wxListbook::GetListSize() const
|
|||||||
wxRect r;
|
wxRect r;
|
||||||
m_list->GetItemRect(i, r);
|
m_list->GetItemRect(i, r);
|
||||||
|
|
||||||
wxCoord w = r.x + r.width,
|
wxCoord w = r.width,
|
||||||
h = r.y + r.height;
|
h = r.height;
|
||||||
|
|
||||||
if ( w > widthMax )
|
if ( w > widthMax )
|
||||||
widthMax = w;
|
widthMax = w;
|
||||||
@@ -161,9 +161,9 @@ wxSize wxListbook::GetListSize() const
|
|||||||
}
|
}
|
||||||
else // left/right aligned
|
else // left/right aligned
|
||||||
{
|
{
|
||||||
// +10 is due to an apparent bug in wxListCtrl::GetItemRect() but I
|
// +20 is due to an apparent bug in wxListCtrl::GetItemRect() but I
|
||||||
// can't fix it there right now so just add a fudge here...
|
// can't fix it there right now so just add a fudge here...
|
||||||
size.x = widthMax + 10;
|
size.x = widthMax + 20;
|
||||||
size.y = sizeClient.y;
|
size.y = sizeClient.y;
|
||||||
|
|
||||||
if ( heightMax >= sizeClient.y )
|
if ( heightMax >= sizeClient.y )
|
||||||
|
Reference in New Issue
Block a user