mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
bug 346318 - Stop fading out popups on 10.4+ so datepicker works. r=joshaas,mento
This commit is contained in:
parent
96a223886b
commit
ea1b2bcb00
@ -1107,6 +1107,11 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
|
||||
}
|
||||
else {
|
||||
if (mWindowPtr) {
|
||||
#ifndef MOZ_SUNBIRD
|
||||
// XXX bug 348146 - Hiding and showing the popup rapidly screws up
|
||||
// Sunbird's datepicker as the hide isn't finished
|
||||
// before we try to show. We need to fix this.
|
||||
//
|
||||
static TransitionWindowWithOptions_type transitionFunc;
|
||||
if (mWindowType == eWindowType_popup) {
|
||||
// Popups will hide by fading out with TransitionWindowWithOptions,
|
||||
@ -1150,6 +1155,7 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
|
||||
PR_TRUE, &transitionOptions);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
::HideWindow(mWindowPtr);
|
||||
}
|
||||
mShown = PR_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user