Ver código fonte

Fix dashboard module height wrong after height animation

Denis K 8 anos atrás
pai
commit
587e6675b3
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      jet/static/jet/js/src/features/dashboard.js

+ 3 - 1
jet/static/jet/js/src/features/dashboard.js

@@ -239,7 +239,9 @@ Dashboard.prototype = {
                     $content.height(oldHeight);
                     $content.animate({
                         height: newHeight
-                    }, 250);
+                    }, 250, 'swing', function() {
+                        $content.height('auto');
+                    });
                 },
                 error: function () {
                     $content.empty();