Attachment #554387: Bug 676321 - Sidebar briefly shows up on orientation change while using form autocomplete for bug #676321

View | Details | Raw Unified | Return to bug 676321
Collapse All | Expand All

(-)a/mobile/chrome/content/ContentPopupHelper.js (+6 lines)
Line     Link Here 
 Lines 216-231   var ContentPopupHelper = { Link Here 
216
216
217
      case "PanFinished":
217
      case "PanFinished":
218
      case "AnimatedZoomEnd":
218
      case "AnimatedZoomEnd":
219
        this.anchorTo();
219
        this.anchorTo();
220
        break;
220
        break;
221
221
222
      case "MozBeforeResize":
222
      case "MozBeforeResize":
223
        popup.left = 0;
223
        popup.left = 0;
224
        popup.style.visibility = "hidden";
225
226
        // When screen orientation changes, we have to ensure that
227
        // the popup width doesn't overflow the content's visible
228
        // area.
229
        popup.firstChild.style.maxWidth = "0px";
224
        break;
230
        break;
225
231
226
      case "resize":
232
      case "resize":
227
        window.setTimeout(function(self) {
233
        window.setTimeout(function(self) {
228
          self.anchorTo();
234
          self.anchorTo();
229
        }, 0, this);
235
        }, 0, this);
230
        break;
236
        break;
231
    }
237
    }

Return to bug 676321