Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when does the resize stop event called? (JQuery UI)

hey every one.
i'd like to makes an object re-draggable after resize finishes but i do not know when does it finish. what action calls the stop event?

thank you

like image 566
Ido_f Avatar asked Dec 29 '25 01:12

Ido_f


1 Answers

I think you're looking for the resizestop event, which is triggered at the end of a resize operation. You can tap into the event like this on initialization of the resizable object:

$("#resizable_div").resizable({
    stop: function(event, ui) {
        alert('stopped resizing');
    }
});

Or you can use bind to attach an event handler:

$("div").bind("resizestop", function(event, ui) {
    alert('stopped resizing');
});
like image 64
Andrew Whitaker Avatar answered Dec 30 '25 14:12

Andrew Whitaker