Bug 545722 - address bar 'jumps' when it gets focus [r=mark.finkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 24 Mar 2010 23:02:47 -0400
changeset 1398 7e1b6d5168fe83cc42e302aba2f632df05d76b08
parent 1397 7c68fc0ed8e45525b7f80faa015e3424d929c4bd
child 1399 5f418393b46d64b4f157b01b8439fde98abe962a
push id1249
push usermfinkle@mozilla.com
push dateThu, 25 Mar 2010 03:19:04 +0000
reviewersmark.finkle
bugs545722
Bug 545722 - address bar 'jumps' when it gets focus [r=mark.finkle]
chrome/content/browser.js
--- a/chrome/content/browser.js
+++ b/chrome/content/browser.js
@@ -412,17 +412,17 @@ var Browser = {
         // XXX this should really only happen on browser startup, not every resize
         Browser.hideSidebars();
       bv.onAfterVisibleMove();
 
       bv.commitBatchOperation();
       
       let curEl = document.activeElement;
       if (curEl && curEl.scrollIntoView)
-        curEl.scrollIntoView();
+        curEl.scrollIntoView(false);
     }
     window.addEventListener("resize", resizeHandler, false);
 
     function fullscreenHandler() {
       if (!window.fullScreen)
         document.getElementById("toolbar-main").setAttribute("fullscreen", "true");
       else
         document.getElementById("toolbar-main").removeAttribute("fullscreen");