소스 검색

[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 년 전
부모
커밋
a4cae9b0c9
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 () {
         $.totalStorage(options.appName + "_left_panel_width", leftPanelWidth);
-        positionPanels();
+        window.setTimeout(positionPanels, 100);
       }
     });