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:
@@ -17,7 +17,7 @@ if ( $(TARGET_PLATFORM) = haiku ) {
|
|||||||
} else {
|
} else {
|
||||||
# for running in the Haiku app_server under R5:
|
# for running in the Haiku app_server under R5:
|
||||||
LinkSharedOSLibs Playground :
|
LinkSharedOSLibs Playground :
|
||||||
# <boot!home!config!lib>libopenbeos.so ;
|
<boot!home!config!lib>libopenbeos.so ;
|
||||||
be ;
|
# be ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,6 +220,8 @@ ObjectWindow::ObjectWindow(BRect frame, const char* name)
|
|||||||
float maxHeight = minHeight;
|
float maxHeight = minHeight;
|
||||||
SetSizeLimits(minWidth, maxWidth, minHeight, maxHeight);
|
SetSizeLimits(minWidth, maxWidth, minHeight, maxHeight);
|
||||||
|
|
||||||
|
ResizeTo(max_c(frame.Width(), minWidth), max_c(frame.Height(), minHeight));
|
||||||
|
|
||||||
_UpdateControls();
|
_UpdateControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
BApplication* app = new BApplication("application/x.vnd-Haiku.Objects");
|
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();
|
(new ObjectWindow(frame, "Playground"))->Show();
|
||||||
|
|
||||||
app->Run();
|
app->Run();
|
||||||
|
|||||||
Reference in New Issue
Block a user