Fix bug 269561: orphaned dropdown left after selecting an item in a combo box. Fix some code in nsMacWindow that could erroneously change the visibility of the window from false to true. r=pinkerton, sr=bzbarsky

This commit is contained in:
smfr%smfr.org 2005-01-17 23:54:34 +00:00
parent 56161e4795
commit a08b0e6ae5

View File

@ -1461,8 +1461,10 @@ NS_IMETHODIMP nsMacWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepai
// instead we just hide the window by calling Show(false), which sets
// mVisible to false. But the window is still considered to be 'visible'
// so we set that back to true.
Show(PR_FALSE);
mVisible = PR_TRUE;
if (mVisible) {
Show(PR_FALSE);
mVisible = PR_TRUE;
}
}
}
}