Linas
Linas

Reputation: 4408

jquery ui resizable update image dimensions

I'm using jquery ui resizable to resize image and this plugin to rotate it

Now when i rotate it let's say 90 degrees resizable doesn't know that i did that, so i need to somehow update it or maybe kill it and run it again? Either way i'm not so sure how to do it, could some one help me out with that?

Upvotes: 1

Views: 675

Answers (1)

TJ VanToll
TJ VanToll

Reputation: 12704

You can destroy / re-initialize it using:

$('.ui-resizable').resizable('destroy').resizable();

Here's an example - http://jsfiddle.net/U7Hqm/1/

Upvotes: 1

Related Questions