Bug 1369488 - Force update popups anchored to hidden deck box, r=tnikkel@gmail.com

MozReview-Commit-ID: Ixj5zdtyUOc

--HG--
extra : rebase_source : 6c35e63ffd6b057b99dd826dff41d91694dd6b60
This commit is contained in:
Martin Stransky 2017-06-13 10:03:27 +02:00
parent 479795876a
commit d48b32977e

View File

@ -110,6 +110,13 @@ nsDeckFrame::IndexChanged()
currentBox, GetSelectedBox());
}
#endif
// Force any popups that might be anchored on elements within hidden
// box to update.
nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
if (pm && currentBox) {
pm->UpdatePopupPositions(currentBox->PresContext()->RefreshDriver());
}
}
int32_t