Browse Source

[core] Improve panel resizing

This fixes an issue where the resize handle sometimes moves a bit too far when dragging quickly. It seems like the draggable accepts some dragging even after stop is invoked.
Johan Ahlen 10 years ago
parent
commit
a4cae9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -698,7 +698,7 @@ ko.bindingHandlers.splitDraggable = {
       },
       stop: function () {
         $.totalStorage(options.appName + "_left_panel_width", leftPanelWidth);
-        positionPanels();
+        window.setTimeout(positionPanels, 100);
       }
     });