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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_thumbnail.js

Issue 23619019: Set position: absolute on NTP thumbnails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed comment wording Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/most_visited_thumbnail.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
index dd3f4fddf4e9bb2cde016784610a695ea3b12227..5c8401799ced11b7062874aa78b7ae375617fe04 100644
--- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
+++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
@@ -30,6 +30,9 @@ window.addEventListener('DOMContentLoaded', function() {
var link = createMostVisitedLink(params, data.url, data.title);
link.appendChild(shadow);
link.appendChild(image);
+ // We add 'position: absolute' in anticipation that there could be more
+ // than one thumbnail. This will superpose the elements.
+ link.style.position = 'absolute';
document.body.appendChild(link);
};
if (!isVisible) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698