Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <ListView.h>
|
||||
|
||||
#include <Autolock.h>
|
||||
#include <LayoutUtils.h>
|
||||
#include <PropertyInfo.h>
|
||||
#include <ScrollBar.h>
|
||||
#include <ScrollView.h>
|
||||
@@ -1092,6 +1093,24 @@ BListView::AllDetached()
|
||||
BView::AllDetached();
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
// DoMiscellaneous
|
||||
bool
|
||||
BListView::DoMiscellaneous(MiscCode code, MiscData *data)
|
||||
|
||||
Reference in New Issue
Block a user