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:
parent
9ff44370c8
commit
b3c980ab0e
@ -153,7 +153,7 @@ ExpanderPreferences::ExpanderPreferences(BMessage *settings)
|
||||
new BMessage(MSG_CANCEL));
|
||||
background->AddChild(button);
|
||||
|
||||
BScreen screen;
|
||||
BScreen screen(this);
|
||||
MoveBy((screen.Frame().Width()-Bounds().Width())/2,
|
||||
(screen.Frame().Height()-Bounds().Height())/2);
|
||||
|
||||
|
@ -163,7 +163,7 @@ ExpanderWindow::ExpanderWindow(BRect frame_rect, const entry_ref *ref, BMessage
|
||||
box->AddChild(fListingScroll);
|
||||
fListingScroll->Hide();
|
||||
|
||||
SetSizeLimits(450, BScreen().Frame().Width(), 120, 120);
|
||||
SetSizeLimits(450, BScreen(this).Frame().Width(), 120, 120);
|
||||
|
||||
// finish creating window
|
||||
Show();
|
||||
|
Loading…
Reference in New Issue
Block a user