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

Unified Diff: tracing/tracing/ui/side_panel/metrics_side_panel.html

Issue 1978673002: Make side panels auto-sized and resizeable. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix glitch? Created 4 years, 7 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: tracing/tracing/ui/side_panel/metrics_side_panel.html
diff --git a/tracing/tracing/ui/side_panel/metrics_side_panel.html b/tracing/tracing/ui/side_panel/metrics_side_panel.html
index bbe11037104748efabc6e70bb12ab0dc11abefd7..56c0d076bb9d1857a00e93a610c31358f148f251 100644
--- a/tracing/tracing/ui/side_panel/metrics_side_panel.html
+++ b/tracing/tracing/ui/side_panel/metrics_side_panel.html
@@ -5,6 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
+<link rel="import" href="/tracing/base/raf.html">
<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/metrics/value_set.html">
<link rel="import" href="/tracing/model/event_set.html">
@@ -19,12 +20,6 @@ found in the LICENSE file.
:host {
display: flex;
flex-direction: column;
- width: 400px;
- }
- table-container {
- display: flex;
- min-height: 0px;
- overflow-y: auto;
}
div#error {
color: red;
@@ -105,6 +100,12 @@ tr.exportTo('tr.ui', function() {
},
updateContents_: function() {
+ this.style.width = '';
+ tr.b.requestAnimationFrame(function() {
+ var width = this.$.results.getBoundingClientRect().width + 15;
+ this.style.width = width + 'px';
+ }, this);
+
if (!this.model_) {
this.$.results.error = 'Missing model';
return;
« no previous file with comments | « tracing/tracing/ui/side_panel/file_size_stats_side_panel.html ('k') | tracing/tracing/ui/side_panel/side_panel_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698