문제

I'm using jQuery UI's Resizable plugin to resize divs horizontally. For the most part, everything is working, but there are a few cases where I would want to drag the left side past the right side or vice versa.

I've noticed that when I try this, I stop receiving the resize events once the right edge has moved left of the left edge.

Is there a setting that would allow me to go pasted that boundary? Or do I just have to resize the element on start, moving the left edge further left, to be big enough to allow this?

도움이 되었습니까?

해결책

Found it. This can be accomplished by setting the minWidth option to a negative number in the start handler.

$(selector).resizable({
  ...
  start: function(e, ui) {
    ui.element.resizable('option', 'minWidth', -500);
  },
  ...
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top