Bug 676321 - Sidebar briefly shows up on orientation change while using form autocomplete (r=mbrubeck)

This commit is contained in:
Lucas Rocha 2011-08-19 15:42:39 +02:00
parent 354933f815
commit 8b78252499

View File

@ -221,6 +221,12 @@ var ContentPopupHelper = {
case "MozBeforeResize":
popup.left = 0;
popup.style.visibility = "hidden";
// When screen orientation changes, we have to ensure that
// the popup width doesn't overflow the content's visible
// area.
popup.firstChild.style.maxWidth = "0px";
break;
case "resize":