зеркало из https://github.com/mozilla/pjs.git
Fix problem where menubar shows up on top of toolbar for Photon
This commit is contained in:
Родитель
4e0d8bc857
Коммит
b71eb1bcf0
|
@ -87,9 +87,15 @@ nsNativeBrowserWindow::CreateMenuBar(PRInt32 aWidth)
|
|||
if( menubar )
|
||||
{
|
||||
menubar->Create( mWindow );
|
||||
mWindow->SetMenuBar( menubar );
|
||||
menubar->GetNativeData(PhMenuBar);
|
||||
::CreateViewerMenus((PtWidget_t *) PhMenuBar,this);
|
||||
|
||||
// REVISIT - strange problem here. May be a race condition or a compiler bug.
|
||||
|
||||
if( mWindow->SetMenuBar( menubar ) == NS_OK )
|
||||
{
|
||||
mWindow->ShowMenuBar( PR_TRUE );
|
||||
menubar->GetNativeData(PhMenuBar);
|
||||
::CreateViewerMenus((PtWidget_t *) PhMenuBar,this);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче