use the current screen
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -153,7 +153,7 @@ ExpanderPreferences::ExpanderPreferences(BMessage *settings)
|
|||||||
new BMessage(MSG_CANCEL));
|
new BMessage(MSG_CANCEL));
|
||||||
background->AddChild(button);
|
background->AddChild(button);
|
||||||
|
|
||||||
BScreen screen;
|
BScreen screen(this);
|
||||||
MoveBy((screen.Frame().Width()-Bounds().Width())/2,
|
MoveBy((screen.Frame().Width()-Bounds().Width())/2,
|
||||||
(screen.Frame().Height()-Bounds().Height())/2);
|
(screen.Frame().Height()-Bounds().Height())/2);
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ ExpanderWindow::ExpanderWindow(BRect frame_rect, const entry_ref *ref, BMessage
|
|||||||
box->AddChild(fListingScroll);
|
box->AddChild(fListingScroll);
|
||||||
fListingScroll->Hide();
|
fListingScroll->Hide();
|
||||||
|
|
||||||
SetSizeLimits(450, BScreen().Frame().Width(), 120, 120);
|
SetSizeLimits(450, BScreen(this).Frame().Width(), 120, 120);
|
||||||
|
|
||||||
// finish creating window
|
// finish creating window
|
||||||
Show();
|
Show();
|
||||||
|
|||||||
Reference in New Issue
Block a user