diff options
Diffstat (limited to 'chrome/browser/resources/options')
-rw-r--r-- | chrome/browser/resources/options/cookies_list.js | 4 | ||||
-rw-r--r-- | chrome/browser/resources/options/intents_list.js | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/resources/options/cookies_list.js b/chrome/browser/resources/options/cookies_list.js index f48cd2b..4e70d1d 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. diff --git a/chrome/browser/resources/options/intents_list.js b/chrome/browser/resources/options/intents_list.js index 28e722d..e2dc21e 100644 --- a/chrome/browser/resources/options/intents_list.js +++ b/chrome/browser/resources/options/intents_list.js @@ -115,7 +115,6 @@ cr.define('options', function() { this.dataChild.hidden = true; } else { if (this.list.expandedItem == this) { - this.list.leadItemHeight = 0; this.list.expandedItem = null; } this.style.height = ''; @@ -169,8 +168,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; }, /** @@ -497,6 +494,7 @@ cr.define('options', function() { sm.addEventListener('change', this.cookieSelectionChange_.bind(this)); sm.addEventListener('leadIndexChange', this.cookieLeadChange_.bind(this)); this.selectionModel = sm; + this.fixedHeight = false; }, /** |