Skip to content

destroy() should also reset width and height #51

@av01d

Description

@av01d

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions