mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
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:
parent
56161e4795
commit
a08b0e6ae5
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user