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

Unified Diff: chrome/browser/resources/task_manager/main.js

Issue 9288017: WebUI TaskManager: Use the specified height of row on refleshing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix (add an additional comment) Created 8 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
Index: chrome/browser/resources/task_manager/main.js
diff --git a/chrome/browser/resources/task_manager/main.js b/chrome/browser/resources/task_manager/main.js
index 5beea99777d055251500958addfd7b3921528221..7feaa734d1bb9d131ee0d6230697ac5bd34a69cc 100644
--- a/chrome/browser/resources/task_manager/main.js
+++ b/chrome/browser/resources/task_manager/main.js
@@ -498,6 +498,11 @@ TaskManager.prototype = {
// Stores the cell element to the dictionary.
this.elementsCache_[pid].cell[i] = cell;
}
+
+ // Specifies the height of the row. The height of each row is
+ // 'num_of_tasks * 20' px.
mazda 2012/01/26 11:20:15 Please make a variable for 20.
yoshiki 2012/01/31 11:30:35 Done.
+ listItem.style.height = (data['uniqueId'].length * 20) + 'px';
+
listItem.data = data;
// Stores the list item element, the number of columns and the number of

Powered by Google App Engine
This is Rietveld 408576698