소스 검색

[spark] Expand right panel when the left one is hidden

Johan Ahlen 10 년 전
부모
커밋
f2d128a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -663,6 +663,7 @@ ko.bindingHandlers.splitDraggable = {
     var positionPanels = function () {
       if (ko.isObservable(options.leftPanelVisible) && ! options.leftPanelVisible()) {
         $rightPanel.css("width", "100%");
+        $rightPanel.css("left", "0");
       } else {
         var totalWidth = $container.width();
         var leftPanelWidth = Math.round(totalWidth * leftPanelRatio);