* 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:
@@ -616,9 +616,7 @@ BListView::GetPreferredSize(float* _width, float* _height)
|
|||||||
BSize
|
BSize
|
||||||
BListView::MinSize()
|
BListView::MinSize()
|
||||||
{
|
{
|
||||||
// We need a stable min size: the BView implementation uses
|
return BView::MinSize();
|
||||||
// GetPreferredSize(), which by default just returns the current size.
|
|
||||||
return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(10, 10));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -632,9 +630,7 @@ BListView::MaxSize()
|
|||||||
BSize
|
BSize
|
||||||
BListView::PreferredSize()
|
BListView::PreferredSize()
|
||||||
{
|
{
|
||||||
// We need a stable preferred size: the BView implementation uses
|
return BView::PreferredSize();
|
||||||
// GetPreferredSize(), which by default just returns the current size.
|
|
||||||
return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), BSize(100, 50));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user