resize the window while it is still hidden to the calculated minumum size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a4576f712b
commit
e4bcf6e073
@ -17,7 +17,7 @@ if ( $(TARGET_PLATFORM) = haiku ) {
|
||||
} else {
|
||||
# for running in the Haiku app_server under R5:
|
||||
LinkSharedOSLibs Playground :
|
||||
# <boot!home!config!lib>libopenbeos.so ;
|
||||
be ;
|
||||
<boot!home!config!lib>libopenbeos.so ;
|
||||
# be ;
|
||||
}
|
||||
|
||||
|
@ -220,6 +220,8 @@ ObjectWindow::ObjectWindow(BRect frame, const char* name)
|
||||
float maxHeight = minHeight;
|
||||
SetSizeLimits(minWidth, maxWidth, minHeight, maxHeight);
|
||||
|
||||
ResizeTo(max_c(frame.Width(), minWidth), max_c(frame.Height(), minHeight));
|
||||
|
||||
_UpdateControls();
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ main(int argc, char** argv)
|
||||
{
|
||||
BApplication* app = new BApplication("application/x.vnd-Haiku.Objects");
|
||||
|
||||
BRect frame(50.0, 50.0, 450.0, 450.0);
|
||||
BRect frame(50.0, 50.0, 450.0, 400.0);
|
||||
(new ObjectWindow(frame, "Playground"))->Show();
|
||||
|
||||
app->Run();
|
||||
|
Loading…
Reference in New Issue
Block a user