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

Unified Diff: chrome/browser/resources/ntp/most_visited.js

Issue 3363001: Different approach to NTP layout (Closed)
Patch Set: cleanup Created 10 years, 4 months 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
Index: chrome/browser/resources/ntp/most_visited.js
diff --git a/chrome/browser/resources/ntp/most_visited.js b/chrome/browser/resources/ntp/most_visited.js
index ca01c1e67d27b3547d62ea9e37fe0398e0951c47..178563ccb5a32e88b68880c429744ad4e3879c62 100644
--- a/chrome/browser/resources/ntp/most_visited.js
+++ b/chrome/browser/resources/ntp/most_visited.js
@@ -255,6 +255,7 @@ var MostVisited = (function() {
var w = thumbWidth + 2 * borderWidth + 2 * marginWidth;
var h = thumbHeight + 40 + 2 * marginHeight;
var sumWidth = cols * w - 2 * marginWidth;
+ var topSpacing = 10;
var rtl = isRtl();
var rects = [];
@@ -266,7 +267,7 @@ var MostVisited = (function() {
var left = rtl ? sumWidth - col * w - thumbWidth - 2 * borderWidth :
col * w;
- var top = row * h;
+ var top = row * h + topSpacing;
rects[i] = {left: left, top: top};
}
« chrome/browser/resources/new_new_tab.js ('K') | « chrome/browser/resources/ntp/most_visited.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698