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:
Stephan Aßmus 2005-06-04 11:14:25 +00:00
parent a4576f712b
commit e4bcf6e073
3 changed files with 5 additions and 3 deletions

View File

@ -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 ;
}

View File

@ -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();
}

View File

@ -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();