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:
@@ -9,8 +9,10 @@
|
||||
/** BStringView draw a non-editable text string */
|
||||
|
||||
|
||||
#include <Message.h>
|
||||
#include <StringView.h>
|
||||
|
||||
#include <LayoutUtils.h>
|
||||
#include <Message.h>
|
||||
#include <View.h>
|
||||
#include <Window.h>
|
||||
|
||||
@@ -265,6 +267,16 @@ BStringView::GetSupportedSuites(BMessage* message)
|
||||
}
|
||||
|
||||
|
||||
BSize
|
||||
BStringView::MaxSize()
|
||||
{
|
||||
float width, height;
|
||||
GetPreferredSize(&width, &height);
|
||||
|
||||
return BLayoutUtils::ComposeSize(ExplicitMaxSize(), BSize(width, height));
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BStringView::Perform(perform_code d, void* arg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user