For me, solutions with two handles and a resize handler worked fine, so the user sees the handle, but can only resize horizontally, a similar solution should work for the vertical. Without the bottom descriptor, the user may not know that he can resize the element.
When using ui.size.height = ui.originalSize.height; it will not work properly if the element has resized from its original state.
foo.resizable({ // Handles left right and bottom right corner handles: 'e, w, se', // Remove height style resize: function(event, ui) { $(this).css("height", ''); } });
For best performance, $(this) can be removed:
var foo = jQuery('#foo'); foo.resizable({ // Handles left right and bottom right corner handles: 'e, w, se', // Remove height style resize: function(event, ui) { foo.css("height", ''); } });
user133408 Mar 13 '14 at 13:19 2014-03-13 13:19
source share