Bug 1180387 - New Tab Page doesn't show websites (wrong number of rows or lines) [r=emtwo]

This commit is contained in:
Maxim Zhilyaev 2015-08-13 11:12:41 -07:00
parent 8f08035eaf
commit 0538bf89da
2 changed files with 2 additions and 5 deletions

View File

@ -195,12 +195,8 @@ let gGrid = {
parseFloat(getComputedStyle(refCell).marginBottom);
this._cellWidth = refCell.offsetWidth + this._cellMargin;
}
let availSpace = document.documentElement.clientHeight - this._cellMargin -
document.querySelector("#newtab-search-container").offsetHeight;
let visibleRows = Math.floor(availSpace / this._cellHeight);
this._node.style.height = this._computeHeight() + "px";
this._node.style.maxHeight = this._computeHeight(visibleRows) + "px";
this._node.style.maxHeight = this._node.style.height;
this._node.style.maxWidth = gGridPrefs.gridColumns * this._cellWidth +
GRID_WIDTH_EXTRA + "px";
}

View File

@ -340,6 +340,7 @@ input[type=button] {
display: -moz-box;
position: relative;
-moz-box-pack: center;
margin: 15px 0px;
}
#newtab-search-container[page-disabled] {