From e2e160328b00c40ca26e8a34a8dc3a433e22bf2e Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Sat, 8 May 2010 19:45:13 +0000 Subject: [PATCH] * Revert MinSize() and PreferredSize() to the normal BView variants, since unlike the comment says GetPreferredSize() actually looks at the content of the listview to determine the size. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36756 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/ListView.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index 14e6f5786f..94e878ce9a 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -616,9 +616,7 @@ BListView::GetPreferredSize(float* _width, float* _height) BSize BListView::MinSize() { - // We need a stable min size: the BView implementation uses - // GetPreferredSize(), which by default just returns the current size. - return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(10, 10)); + return BView::MinSize(); } @@ -632,9 +630,7 @@ BListView::MaxSize() BSize BListView::PreferredSize() { - // We need a stable preferred size: the BView implementation uses - // GetPreferredSize(), which by default just returns the current size. - return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), BSize(100, 50)); + return BView::PreferredSize(); }