From: Vadim Zeitlin Date: Sun, 24 Aug 2003 22:46:59 +0000 (+0000) Subject: fixes for the list ctrl layout X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/41d8fca0278ea97838c92e8646283d522c3b0119?ds=inline fixes for the list ctrl layout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 1ac9ecceff..c4c83d0b91 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -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 )