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

Unified Diff: tracing/tracing/ui/timeline_track_view.html

Issue 3002533002: Switch tracing to new flexbox. (Closed)
Patch Set: Created 3 years, 4 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/timeline_track_view.html
diff --git a/tracing/tracing/ui/timeline_track_view.html b/tracing/tracing/ui/timeline_track_view.html
index 3929e9a1c36f5f9692f556f59cfd22cc36223289..f48994102f9fa7a2577c0ffb28c39a38b54322f7 100644
--- a/tracing/tracing/ui/timeline_track_view.html
+++ b/tracing/tracing/ui/timeline_track_view.html
@@ -40,8 +40,8 @@ found in the LICENSE file.
<template>
<style>
:host {
- -webkit-box-orient: vertical;
- display: -webkit-box;
+ flex-direction: column;
+ display: flex;
position: relative;
}
@@ -94,6 +94,8 @@ Polymer({
new tr.ui.tracks.DrawingContainer(this.viewport_);
Polymer.dom(this).appendChild(this.rulerTrackContainer_);
this.rulerTrackContainer_.invalidate();
+ this.rulerTrackContainer_.style.overflowY = 'hidden';
+ this.rulerTrackContainer_.style.flexShrink = '0';
this.rulerTrack_ = new tr.ui.tracks.XAxisTrack(this.viewport_);
Polymer.dom(this.rulerTrackContainer_).appendChild(this.rulerTrack_);
@@ -106,6 +108,7 @@ Polymer({
new tr.ui.tracks.DrawingContainer(this.viewport_);
Polymer.dom(this).appendChild(this.modelTrackContainer_);
this.modelTrackContainer_.style.display = 'block';
+ this.modelTrackContainer_.style.flexGrow = '1';
this.modelTrackContainer_.invalidate();
this.viewport_.modelTrackContainer = this.modelTrackContainer_;
« no previous file with comments | « tracing/tracing/ui/side_panel/side_panel_container.html ('k') | tracing/tracing/ui/timeline_view_help_overlay.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698