Skip to content
Advertisement

Getting old size values from jquery.ui.resizable

I am trying to get the new size of a div after resizing. However when using ui.size.height or $(e.target).height() I am getting instead the original height of the element.

JavaScript

All three logs write the same value. When I try this code on any other div on another page I get the right values.

My hmtl:

JavaScript

I also use ui.Draggable on the same element but also tried without it.

Appreciate every help. Thank you

Advertisement

Answer

Since you have defined a Helper, you will want to review the Size of that element.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement