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:
kmcclusk%netscape.com 1998-07-21 21:26:17 +00:00
parent 28eb2a44f0
commit cf3031342e

View File

@ -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();
}
//-------------------------------------------------------------------------