소스 검색

v-split - Fix issue that causes the split to move all the way to the left on click

Vijayakrishnan Krishnan 4 년 전
부모
커밋
40fd457818
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/v-splitter-px/v-splitter.js

+ 1 - 1
public/v-splitter-px/v-splitter.js

@@ -25,7 +25,7 @@ function initVSplitter(_name, _left, _right, _alignTo = null) {
     vSplit.css({left: (_left.outerWidth() * 100 / totalWidth) + '%'})
         .off('mousedown.' + _name).on('mousedown.' + _name, function(_e) {
             totalWidth = _left.parent().width();
-            origLeft = vSplit.position().left;
+            origLeft = finalLeft = vSplit.position().left;
             origX = _e.screenX;
             vMoving = true;
             $('body').addClass('v-moving');