Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: chrome/browser/resources/ntp_search/tile_page.js

Issue 11428075: NTP5: Implementing two rows option for Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NTP5: Implementing two rows option for Apps Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp_search/tile_page.css ('k') | chrome/browser/ui/search/search_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp_search/tile_page.js
diff --git a/chrome/browser/resources/ntp_search/tile_page.js b/chrome/browser/resources/ntp_search/tile_page.js
index 019a87ebd49a534505047e17bd1079fe13b2b1f5..25db675f724a43b8fd464b847a7092337a60a74d 100644
--- a/chrome/browser/resources/ntp_search/tile_page.js
+++ b/chrome/browser/resources/ntp_search/tile_page.js
@@ -19,12 +19,6 @@ cr.define('ntp', function() {
* @type {number}
* @const
*/
- var TILE_ROW_HEIGHT = 92;
-
- /**
- * @type {number}
- * @const
- */
var SCROLL_BAR_WIDTH = 12;
//----------------------------------------------------------------------------
@@ -576,7 +570,7 @@ cr.define('ntp', function() {
if (isRTL())
col = colCount - col - 1;
var config = this.config;
- var top = TILE_ROW_HEIGHT * row;
+ var top = ntp.TILE_ROW_HEIGHT * row;
var left = col * (config.cellWidth + config.cellMarginStart);
return {top: top, left: left};
},
@@ -690,6 +684,9 @@ cr.define('ntp', function() {
* @param {boolean=} opt_animate Whether the layout be animated.
*/
layout: function(opt_animate) {
+ var contentHeight = ntp.getContentHeight();
+ this.content_.style.height = contentHeight + 'px';
+
var contentWidth = ntp.getContentWidth();
var colCount = this.getColCountForWidth_(contentWidth);
var lastColCount = this.colCount_;
« no previous file with comments | « chrome/browser/resources/ntp_search/tile_page.css ('k') | chrome/browser/ui/search/search_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698