Bug 913229 - Snapped displays cropped multi-column tiles after touch scroll r=mbrubeck
authorRodrigo Silveira <rsilveira@mozilla.com>
Thu, 05 Sep 2013 16:32:43 -0700
changeset 146678 92b84e142f38cea863ff2ab3595588f70cb574eb
parent 146677 35a772328e246abec98b50226213514ce9d5fe43
child 146679 63aa3bb1a0ddb36ee4781a4faa9525c3a0cac2ae
push idunknown
push userunknown
push dateunknown
reviewersmbrubeck
bugs913229
milestone26.0a1
Bug 913229 - Snapped displays cropped multi-column tiles after touch scroll r=mbrubeck
browser/metro/base/content/browser.js
--- a/browser/metro/base/content/browser.js
+++ b/browser/metro/base/content/browser.js
@@ -1138,19 +1138,22 @@ Browser.MainDragger.prototype = {
 
     if (scaleY) {
       this._verticalScrollbar.height = ContentAreaObserver.height * scaleY;
       this._verticalScrollbar.setAttribute("panning", "true");
     }
   },
 
   _hideScrollbars: function _hideScrollbars() {
-    this._scrollScales.x = 0, this._scrollScales.y = 0;
+    this._scrollScales.x = 0;
+    this._scrollScales.y = 0;
     this._horizontalScrollbar.removeAttribute("panning");
     this._verticalScrollbar.removeAttribute("panning");
+    this._horizontalScrollbar.removeAttribute("width");
+    this._verticalScrollbar.removeAttribute("height");
     this._horizontalScrollbar.style.MozTransform = "";
     this._verticalScrollbar.style.MozTransform = "";
   }
 };
 
 
 
 const OPEN_APPTAB = 100; // Hack until we get a real API