Bug 848999 - change topsites grid count to 8
authorAllison Naaktgeboren <ally@mozilla.com>
Wed, 13 Mar 2013 10:46:05 -0700
changeset 124720 8e9c48cb651dc87af5b3879df97e801bdd3511be
parent 124719 9f39547cfab344ff0b6e98364ad9f019bff90636
child 124721 f77559dc68c39576ef59f07859139f095f009b40
push id24433
push useremorley@mozilla.com
push dateThu, 14 Mar 2013 12:21:10 +0000
treeherdermozilla-central@96af92fa87fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs848999
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 848999 - change topsites grid count to 8
browser/metro/base/content/TopSites.js
--- a/browser/metro/base/content/TopSites.js
+++ b/browser/metro/base/content/TopSites.js
@@ -232,17 +232,17 @@ TopSitesView.prototype = {
 
 };
 
 let TopSitesStartView = {
   _view: null,
   get _grid() { return document.getElementById("start-topsites-grid"); },
 
   init: function init() {
-    this._view = new TopSitesView(this._grid, 9, true);
+    this._view = new TopSitesView(this._grid, 8, true);
     if (this._view.isFirstRun()) {
       let topsitesVbox = document.getElementById("start-topsites");
       topsitesVbox.setAttribute("hidden", "true");
     }
     this._view.populateGrid();
   },
 
   uninit: function uninit() {
@@ -253,21 +253,21 @@ let TopSitesStartView = {
     this._grid.arrangeItems(3, 3);
   },
 };
 
 let TopSitesSnappedView = {
   get _grid() { return document.getElementById("snapped-topsite-grid"); },
 
   show: function show() {
-    this._grid.arrangeItems(1, 9);
+    this._grid.arrangeItems(1, 8);
   },
 
   init: function() {
-    this._view = new TopSitesView(this._grid, 9);
+    this._view = new TopSitesView(this._grid, 8);
     if (this._view.isFirstRun()) {
       let topsitesVbox = document.getElementById("snapped-topsites");
       topsitesVbox.setAttribute("hidden", "true");
     }
     this._view.populateGrid();
   },
 
   uninit: function uninit() {