فهرست منبع

[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 سال پیش
والد
کامیت
a4cae9b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 () {
       stop: function () {
         $.totalStorage(options.appName + "_left_panel_width", leftPanelWidth);
         $.totalStorage(options.appName + "_left_panel_width", leftPanelWidth);
-        positionPanels();
+        window.setTimeout(positionPanels, 100);
       }
       }
     });
     });