mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fixed bug where child window is not being displayed in Viewer. Show() now
manages and unmanages the widget directly without testing visibility.
This commit is contained in:
parent
28eb2a44f0
commit
cf3031342e
@ -609,8 +609,13 @@ void nsWindow::RemoveChild(nsIWidget* aChild)
|
||||
void nsWindow::Show(PRBool bState)
|
||||
{
|
||||
mShown = bState;
|
||||
UpdateVisibilityFlag();
|
||||
UpdateDisplay();
|
||||
if (bState)
|
||||
XtManageChild(mWidget);
|
||||
else
|
||||
XtUnmanageChild(mWidget);
|
||||
|
||||
// UpdateVisibilityFlag();
|
||||
// UpdateDisplay();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user