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:
Vadim Zeitlin
2003-08-24 22:46:59 +00:00
parent f7f97bf31c
commit 41d8fca027

View File

@@ -137,8 +137,8 @@ wxSize wxListbook::GetListSize() const
wxRect r;
m_list->GetItemRect(i, r);
wxCoord w = r.x + r.width,
h = r.y + r.height;
wxCoord w = r.width,
h = r.height;
if ( w > widthMax )
widthMax = w;
@@ -161,9 +161,9 @@ wxSize wxListbook::GetListSize() const
}
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...
size.x = widthMax + 10;
size.x = widthMax + 20;
size.y = sizeClient.y;
if ( heightMax >= sizeClient.y )