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

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

Issue 11365075: alternate ntp: tweaks and fixes for bookmark bar in ntp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | chrome/browser/ui/search/search_ui.cc » ('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 00af6cd53495cbc59ce0611d2c567bcfc58a8239..b7067bc3472c95dcf49fb39a2b3edf8bc036f865 100644
--- a/chrome/browser/resources/ntp_search/tile_page.js
+++ b/chrome/browser/resources/ntp_search/tile_page.js
@@ -10,13 +10,14 @@ cr.define('ntp', function() {
//----------------------------------------------------------------------------
/**
- * Bottom Panel's minimum padding bottom, which is 57 (the height of bookmark
- * bar in detached mode as defined by chrome::kNTPBookmarkBarHeight) minus 12
- * (top padding of a bookmark button).
+ * Bottom Panel's minimum padding bottom, which is 48 (the height of bookmark
+ * bar in detached mode as defined by kSearchNewtabBookmarkBarHeight in
+ * chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc minus 12 (top
+ * padding of a bookmark button).
* @type {number}
* @const
*/
- var BOTTOM_PANEL_MIN_PADDING_BOTTOM = 45;
+ var BOTTOM_PANEL_MIN_PADDING_BOTTOM = 36;
/**
* The height required to show 2 rows of Tiles in the Bottom Panel.
@@ -40,7 +41,7 @@ cr.define('ntp', function() {
// TODO(pedrosimonetti): This value is related to
// kMinContentHeightForBottomBookmarkBar defined in chrome/browser/ui/search/
// search_ui.h. Change that value when calulation of bottom panel changes.
- var HEIGHT_FOR_BOTTOM_PANEL = 600;
+ var HEIGHT_FOR_BOTTOM_PANEL = 591;
/**
* The Bottom Panel width required to show 5 cols of Tiles, which is used
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698