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

Unified Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 340483003: DevTools: [Console] Separate height caching from willHide event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/Source/devtools/front_end/console/ConsoleViewMessage.js b/Source/devtools/front_end/console/ConsoleViewMessage.js
index cde2413a50b7a2ccaa6cba164cd8868156b997e4..66ef3836c345e0833dcb2868f1ce6e6a9d905b99 100644
--- a/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -84,9 +84,13 @@ WebInspector.ConsoleViewMessage.prototype = {
}
},
- willHide: function()
+ cacheHeight: function()
{
this._cachedHeight = this.contentElement().clientHeight;
+ },
+
+ willHide: function()
+ {
for (var i = 0; this._dataGrids && i < this._dataGrids.length; ++i) {
var dataGrid = this._dataGrids[i];
this._dataGridParents.put(dataGrid, dataGrid.element.parentElement);
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/ViewportControl.js » ('j') | Source/devtools/front_end/ui/ViewportControl.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698