Perhaps you can just resize the body and scroll to allow constant resizing:
var body = $('body'); $('#resize').resizable({ handles: "e,s,se", resize: function (event, ui) { var width = body.width(), diff = width - (width - (this.offsetLeft + this.offsetWidth)); body.width(diff).scrollLeft(diff); } });
or (less jQuery)
$('#resize').resizable({ handles: "e,s,se", resize: function (event, ui) { var width = document.body.clientWidth, diff = width - (width - (this.offsetLeft + this.offsetWidth)); document.body.style.width = diff + 'px'; document.body.scrollLeft = diff; } });
Here is the related script: http://jsfiddle.net/jeff_mccoy/UpmNq/2/
Note that you can speed this up a bit by only reducing the size of each X-pixel (! Diff% 3) as an example, but it will also be a bit jerky when resized.
source share