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

git-svn-id: svn://10.0.0.236/trunk@167929 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smfr%smfr.org
2005-01-17 23:54:34 +00:00
parent 30f3bf8178
commit e8a4ad2357

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;
}
}
}
}