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

Unified Diff: tools/turbolizer/view.js

Issue 2174803002: [turbolizer] Add support for showing perf profiling information. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [turbolizer] Add support for showing perf profiling information. Created 4 years, 5 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 | « tools/turbolizer/turbo-visualizer.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/view.js
diff --git a/tools/turbolizer/view.js b/tools/turbolizer/view.js
index 2c90c6da5bb5b8c5264bcb8deef7c8b40406abbe..ebb0481950b82b23b341b612c5283c7062a10335 100644
--- a/tools/turbolizer/view.js
+++ b/tools/turbolizer/view.js
@@ -26,7 +26,11 @@ class View {
resizeToParent() {
var view = this;
var documentElement = document.documentElement;
- var y = this.parentNode.clientHeight || documentElement.clientHeight;
+ var y;
+ if (this.parentNode.clientHeight)
+ y = Math.max(this.parentNode.clientHeight, documentElement.clientHeight);
+ else
+ y = documentElement.clientHeight;
this.parentNode.style.height = y + 'px';
}
« no previous file with comments | « tools/turbolizer/turbo-visualizer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698