Chromium Code Reviews| Index: chrome/browser/resources/ntp4/tile_page.js |
| diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js |
| index b5ab15d0da0b41a68dd75cc9b1a97e31b9056570..fb0b3ec86a7047f08ef185d07550ae831db4b0d2 100644 |
| --- a/chrome/browser/resources/ntp4/tile_page.js |
| +++ b/chrome/browser/resources/ntp4/tile_page.js |
| @@ -897,9 +897,9 @@ cr.define('ntp4', function() { |
| (this.isCurrentDragTarget && !this.withinPageDrag_ ? 1 : 0); |
| var numRows = Math.ceil(numTiles / layout.numRowTiles); |
| var usedHeight = layout.rowHeight * numRows; |
| - // 100 matches the top padding of tile-page. |
| + // 60 matches the top padding of tile-page (which acts as the minimum). |
| var newMargin = document.documentElement.clientHeight / 3 - |
| - usedHeight / 2 - 100 - this.content_.offsetTop; |
|
Evan Stade
2011/12/07 00:12:04
I can't remember why I ever put offsetTop in here,
|
| + usedHeight / 3 - 60; |
|
Dan Beam
2011/12/07 00:16:28
What do you think about instead of 60 doing this o
Evan Stade
2011/12/07 00:36:15
do not want
|
| newMargin = Math.max(newMargin, 0); |
| // |newMargin| is the final margin we actually want to show. However, |