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

Unified Diff: chrome/browser/resources/options/add_startup_page_recent_pages_list.js

Issue 6361005: DOMUI Prefs: Fix the way recent page rows are sized and truncated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « chrome/browser/resources/options/add_startup_page_overlay.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/add_startup_page_recent_pages_list.js
diff --git a/chrome/browser/resources/options/add_startup_page_recent_pages_list.js b/chrome/browser/resources/options/add_startup_page_recent_pages_list.js
index ff080f681e88a70630abe7e1499f5297328f3456..95be30ca42e20b4b54820dea0c607bacb6fc39d3 100644
--- a/chrome/browser/resources/options/add_startup_page_recent_pages_list.js
+++ b/chrome/browser/resources/options/add_startup_page_recent_pages_list.js
@@ -35,19 +35,23 @@ cr.define('options.add_startup_page', function() {
decorate: function() {
ListItem.prototype.decorate.call(this);
+ var wrapperEl = this.ownerDocument.createElement('div');
+ wrapperEl.className = 'vertical-center';
+ this.appendChild(wrapperEl);
+
var titleEl = this.ownerDocument.createElement('span');
titleEl.className = 'title';
titleEl.classList.add('favicon-cell');
titleEl.style.backgroundImage = url('chrome://favicon/' +
this.pageInfo['url']);
- this.appendChild(titleEl);
+ wrapperEl.appendChild(titleEl);
if (this.pageInfo['title'].length > 0) {
titleEl.textContent = this.pageInfo['title'];
var urlEL = this.ownerDocument.createElement('span');
urlEL.className = 'url';
urlEL.textContent = this.pageInfo['displayURL'];
- this.appendChild(urlEL);
+ wrapperEl.appendChild(urlEL);
} else {
titleEl.textContent = this.pageInfo['displayURL'];
}
« no previous file with comments | « chrome/browser/resources/options/add_startup_page_overlay.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698