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

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

Issue 8608007: cr/ui/list.js: Support rows with variable heights. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Omit the custom lead item height Created 9 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/resources/options/intents_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/cookies_list.js
diff --git a/chrome/browser/resources/options/cookies_list.js b/chrome/browser/resources/options/cookies_list.js
index f48cd2b36f29c0b4345668387ceb475bb3d29b99..4e70d1d0708a8462070d96bc86c335ecad59ffc4 100644
--- a/chrome/browser/resources/options/cookies_list.js
+++ b/chrome/browser/resources/options/cookies_list.js
@@ -160,7 +160,6 @@ cr.define('options', function() {
this.classList.add('show-items');
} else {
if (this.list.expandedItem == this) {
- this.list.leadItemHeight = 0;
this.list.expandedItem = null;
}
this.style.height = '';
@@ -213,8 +212,6 @@ cr.define('options', function() {
this.classList.remove('measure-items');
this.itemsChild.style.height = itemsHeight + 'px';
this.style.height = fixedHeight + 'px';
- if (this.expanded)
- this.list.leadItemHeight = fixedHeight;
},
/**
@@ -623,6 +620,7 @@ cr.define('options', function() {
sm.addEventListener('leadIndexChange', this.cookieLeadChange_.bind(this));
this.selectionModel = sm;
this.infoNodes = {};
+ this.fixedHeight = false;
var doc = this.ownerDocument;
// Create a table for each type of site data (e.g. cookies, databases,
// etc.) and save it so that we can reuse it for all origins.
« no previous file with comments | « no previous file | chrome/browser/resources/options/intents_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698