From e4bcf6e073cb59f753fd55931353be0d11fdb213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 4 Jun 2005 11:14:25 +0000 Subject: [PATCH] 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 --- src/tests/servers/app/playground/Jamfile | 4 ++-- src/tests/servers/app/playground/ObjectWindow.cpp | 2 ++ src/tests/servers/app/playground/main.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/servers/app/playground/Jamfile b/src/tests/servers/app/playground/Jamfile index 59d98eafa0..0560020189 100644 --- a/src/tests/servers/app/playground/Jamfile +++ b/src/tests/servers/app/playground/Jamfile @@ -17,7 +17,7 @@ if ( $(TARGET_PLATFORM) = haiku ) { } else { # for running in the Haiku app_server under R5: LinkSharedOSLibs Playground : -# libopenbeos.so ; - be ; + libopenbeos.so ; +# be ; } diff --git a/src/tests/servers/app/playground/ObjectWindow.cpp b/src/tests/servers/app/playground/ObjectWindow.cpp index f2ab0951e8..334cb1ff97 100644 --- a/src/tests/servers/app/playground/ObjectWindow.cpp +++ b/src/tests/servers/app/playground/ObjectWindow.cpp @@ -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(); } diff --git a/src/tests/servers/app/playground/main.cpp b/src/tests/servers/app/playground/main.cpp index 36bcd68596..4e947ac45a 100644 --- a/src/tests/servers/app/playground/main.cpp +++ b/src/tests/servers/app/playground/main.cpp @@ -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();