diff options
Diffstat (limited to 'js/panels/Timeline/Layer.reel')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 776d5ec8..a8c22b2a 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js | |||
@@ -945,12 +945,14 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
945 | this.isMainCollapsed = false; | 945 | this.isMainCollapsed = false; |
946 | } else { | 946 | } else { |
947 | this.isMainCollapsed = true; | 947 | this.isMainCollapsed = true; |
948 | this.application.ninja.timeline.synchScrollbars(43); | ||
948 | } | 949 | } |
949 | this.triggerOutgoingBinding(); | 950 | this.triggerOutgoingBinding(); |
950 | } | 951 | } |
951 | }, | 952 | }, |
952 | handlePositionCollapserClick : { | 953 | handlePositionCollapserClick : { |
953 | value: function(event) { | 954 | value: function(event) { |
955 | var myHeight = this.positionCollapser.element.offsetHeight; | ||
954 | this.positionCollapser.bypassAnimation = false; | 956 | this.positionCollapser.bypassAnimation = false; |
955 | this.bypassAnimation = false; | 957 | this.bypassAnimation = false; |
956 | this.layerData.bypassAnimation = false; | 958 | this.layerData.bypassAnimation = false; |
@@ -958,12 +960,14 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
958 | this.isPositionCollapsed = false; | 960 | this.isPositionCollapsed = false; |
959 | } else { | 961 | } else { |
960 | this.isPositionCollapsed = true; | 962 | this.isPositionCollapsed = true; |
963 | this.application.ninja.timeline.synchScrollbars(myHeight); | ||
961 | } | 964 | } |
962 | this.triggerOutgoingBinding(); | 965 | this.triggerOutgoingBinding(); |
963 | } | 966 | } |
964 | }, | 967 | }, |
965 | handleStyleCollapserClick : { | 968 | handleStyleCollapserClick : { |
966 | value: function(event) { | 969 | value: function(event) { |
970 | var myHeight = this.styleCollapser.element.offsetHeight; | ||
967 | this.styleCollapser.bypassAnimation = false; | 971 | this.styleCollapser.bypassAnimation = false; |
968 | this.bypassAnimation = false; | 972 | this.bypassAnimation = false; |
969 | this.layerData.bypassAnimation = false; | 973 | this.layerData.bypassAnimation = false; |
@@ -971,6 +975,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
971 | this.isStyleCollapsed = false; | 975 | this.isStyleCollapsed = false; |
972 | } else { | 976 | } else { |
973 | this.isStyleCollapsed = true; | 977 | this.isStyleCollapsed = true; |
978 | this.application.ninja.timeline.synchScrollbars(myHeight); | ||
974 | } | 979 | } |
975 | this.triggerOutgoingBinding(); | 980 | this.triggerOutgoingBinding(); |
976 | } | 981 | } |