Bug 636449 - Hide titlebar after scrolling to bottom [r=vingtetun, a=blassey]
authorMatt Brubeck <mbrubeck@mozilla.com>
Fri, 04 Mar 2011 15:31:17 -0800
changeset 67472 58781b1a38264588593e7f55678f8fdffa3f0550
parent 67471 d0a9a183ed745f1c671b71a1112b9e5d88df7b33
child 67473 e5f360ab151b91277608bd5b29825580e0c1d970
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)
reviewersvingtetun, blassey
bugs636449
Bug 636449 - Hide titlebar after scrolling to bottom [r=vingtetun, a=blassey]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -486,16 +486,17 @@ var Browser = {
   scrollContentToBottom: function scrollContentToBottom(aOptions) {
     let x = {}, y = {};
     this.contentScrollboxScroller.getPosition(x, y);
     if (aOptions)
       x.value = ("x" in aOptions ? aOptions.x : x.value);
 
     this.contentScrollboxScroller.scrollTo(x.value, Number.MAX_VALUE);
     this.pageScrollboxScroller.scrollTo(0, Number.MAX_VALUE);
+    this.hideTitlebar();
   },
 
   hideSidebars: function scrollSidebarsOffscreen() {
     let rect = Elements.browsers.getBoundingClientRect();
     this.controlsScrollboxScroller.scrollBy(Math.round(rect.left), 0);
     this.tryUnfloatToolbar();
   },