jquery-resizable
jquery-resizable copied to clipboard
`destroy()` should also reset `width` and `height`
When calling destroy on an instance, the css width and height values remain. They should be removed.
Fix is this: change
$handle = getHandle(opt.handleSelector, $el);
$handle.off("mousedown." + opt.instanceId + " touchstart." + opt.instanceId);
if (opt.touchActionNone)
$handle.css("touch-action", "");
$el.removeClass("resizable");
return;
to this
$handle = getHandle(opt.handleSelector, $el);
$handle.off("mousedown." + opt.instanceId + " touchstart." + opt.instanceId);
if (opt.touchActionNone)
$handle.css("touch-action", "");
$el.removeClass("resizable");
$el.css({width:'', height:''});
return;