Bug 525549: At top of a page, URL bar jumps when accessing sidebars [r=mark.finkle]
authorBenjamin Stover <webapps@stechz.com>
Tue, 03 Nov 2009 00:13:42 -0500
changeset 65746 2f4e6fb6ef077cf9e0bb971192adae38ce1f9142
parent 65745 da32873e88af6be561dfdbfd28855adb1396772b
child 65747 dad5c7928e5a12e27baee78ecba2c019f145a705
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs525549
Bug 525549: At top of a page, URL bar jumps when accessing sidebars [r=mark.finkle]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -188,16 +188,18 @@ var BrowserUI = {
     this.hidePanel();
     this._editURI(aEdit);
   },
 
   _toolbarLocked: 0,
   lockToolbar: function lockToolbar() {
     this._toolbarLocked++;
     document.getElementById("toolbar-moveable-container").top = "0";
+    if (this._toolbarLocked == 1)
+      Browser.forceChromeReflow();
   },
   
   unlockToolbar: function unlockToolbar() {
     if (!this._toolbarLocked)
       return;
     
     this._toolbarLocked--;
     if (!this._toolbarLocked)