mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180387 - New Tab Page doesn't show websites (wrong number of rows or lines) [r=emtwo]
This commit is contained in:
parent
8f08035eaf
commit
0538bf89da
@ -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";
|
||||
}
|
||||
|
@ -340,6 +340,7 @@ input[type=button] {
|
||||
display: -moz-box;
|
||||
position: relative;
|
||||
-moz-box-pack: center;
|
||||
margin: 15px 0px;
|
||||
}
|
||||
|
||||
#newtab-search-container[page-disabled] {
|
||||
|
Loading…
Reference in New Issue
Block a user