* 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
This commit is contained in:
parent
3637934a88
commit
e2e160328b
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user