Bug 1416104 - Part 7: Make animated property list scrollable. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Fri, 19 Jan 2018 16:40:26 +0900
changeset 722547 accb860818c64b6507330bca2e03db372dec8ad0
parent 722541 78236e70f3d6973cfe171754cfe7d5df62ab4fef
child 722548 c7aef85da72f55a31a04d8dd6820c51c71584388
push id96169
push userbmo:dakatsuka@mozilla.com
push dateFri, 19 Jan 2018 07:44:47 +0000
reviewersgl
bugs1416104
milestone59.0a1
Bug 1416104 - Part 7: Make animated property list scrollable. r?gl MozReview-Commit-ID: Abs3XL4I6SM
devtools/client/themes/animation.css
--- a/devtools/client/themes/animation.css
+++ b/devtools/client/themes/animation.css
@@ -20,16 +20,20 @@
   --command-pick-image: url(chrome://devtools/skin/images/firebug/command-pick.svg);
 }
 
 /* Root element of animation inspector */
 #animation-container {
   height: 100%;
 }
 
+#animation-container .uncontrolled {
+  overflow: hidden;
+}
+
 /* Animation List Container */
 .animation-list-container {
   display: flex;
   flex-direction: column;
   height: 100%;
   overflow: hidden;
   width: 100%;
 }
@@ -219,34 +223,46 @@
   stroke-linejoin: round;
   stroke-opacity: .5;
   stroke-width: 4;
   text-anchor: end;
 }
 
 /* Animation Detail */
 .animation-detail-container {
+  display: flex;
+  flex-direction: column;
+  height: 100%;
+  overflow: hidden;
   width: 100%;
 }
 
 .animation-detail-header {
   white-space: nowrap;
 }
 
+/* Animated Property List Container */
+.animated-property-list-container {
+  display: flex;
+  flex: 1;
+  flex-direction: column;
+  overflow-y: auto;
+}
+
 /* Animated Property List Header */
 .animated-property-list-header {
   display: flex;
   justify-content: flex-end;
   padding: 0;
 }
 
 /* Keyframes Progress Tick List */
 .keyframes-progress-tick-list {
   margin-right: var(--graph-right-offset);
-  position: relative;
+  position: absolute;
   width: calc(100% - var(--sidebar-width) - var(--graph-right-offset));
 }
 
 .keyframes-progress-tick-item {
   height: 100vh;
   position: absolute;
 }
 
@@ -255,18 +271,20 @@
 }
 
 .keyframes-progress-tick-item.right {
   border-right: var(--tick-line-style);
 }
 
 /* Animated Property List */
 .animated-property-list {
+  flex: 1;
   list-style-type: none;
   margin-top: 0;
+  overflow-y: auto;
   padding: 0;
 }
 
 /* Animated Property Item */
 .animated-property-item {
   height: 30px;
 }