Browse Source

[spark] Fix resize exception

Enrico Berti 10 years ago
parent
commit
ac1fcde
1 changed files with 1 additions and 0 deletions
  1. 1 0
      desktop/core/src/desktop/templates/ko_components.mako

+ 1 - 0
desktop/core/src/desktop/templates/ko_components.mako

@@ -136,6 +136,7 @@ from django.utils.translation import ugettext as _
           $(".assist-main").height($(window).height() - 230);
         }
 
+        var _resizeTimeout = -1;
         $(window).on("resize", function(){
           window.clearTimeout(_resizeTimeout);
           _resizeTimeout = window.setTimeout(resizeAssist, 200);