浏览代码

Fix detailed card pane animation

Maxime Quandalle 10 年之前
父节点
当前提交
fc2435b042
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4 6
      client/components/boards/body.js

+ 4 - 6
client/components/boards/body.js

@@ -55,17 +55,15 @@ BlazeComponent.extendComponent({
     // transition for the actual animation.
     lists._uihooks = {
       removeElement: function(node) {
-        var removeNode = function() {
+        var removeNode = _.once(function() {
           node.parentNode.removeChild(node);
-        };
+        });
         if ($(node).hasClass('js-card-detail')) {
           $(node).css({
-            flex: '0',
+            flex: '0 0 0',
             padding: 0
           });
-          $(lists).one(endTransitionEvents, function() {
-            removeNode();
-          });
+          $(lists).one(endTransitionEvents, removeNode);
         } else {
           removeNode();
         }