Open av01d opened 5 months ago
When calling destroy on an instance, the css width and height values remain. They should be removed. Fix is this: change
destroy
width
height
$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;
When calling
destroy
on an instance, the csswidth
andheight
values remain. They should be removed. Fix is this: changeto this