Misc fixes to unbreak Mozilla under BeOS.

BeOS only change authorized by cyeh.
This commit is contained in:
duncan%be.com 1999-07-11 08:49:51 +00:00
Родитель e400f4c284
Коммит 8b5889ca9b
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -479,7 +479,6 @@ nsresult nsWindow::StandardWindowCreate(nsIWidget *aParent,
}
mView = CreateBeOSView();
mView->Hide();
if(parent)
{
bool mustunlock;
@ -501,10 +500,13 @@ nsresult nsWindow::StandardWindowCreate(nsIWidget *aParent,
winrect.OffsetBy( 10, 30 );
nsWindowBeOS *w = new nsWindowBeOS(this,
winrect,
"Gecko", B_TITLED_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_ASYNCHRONOUS_CONTROLS);
"", B_TITLED_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_ASYNCHRONOUS_CONTROLS);
w->AddChild(mView);
// FIXME: we have to use the window size because
// the window might not like sizes less then 30x30 or something like that
mView->MoveTo(0, 0);
mView->ResizeTo(aRect.width, GetHeight(aRect.height));
mView->ResizeTo(w->Bounds().Width(), w->Bounds().Height());
mView->SetResizingMode(B_FOLLOW_ALL);
w->Run();
}