Ticket #3026 (closed bug: fixed)
resizable resize handler is called too early
| Reported by: | rdworth | Owned by: | rdworth |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.5.1 |
| Component: | ui.resizable | Version: | 1.5 |
| Keywords: | resize callback early | Cc: | |
| Blocking: | Blocked by: |
Description
The resizable resize callback is called before the element is resized, and before the position and size properties (which are passed as ui.position and ui.size) are updated. This makes it so that any callback that wants to respond to a resize event is always one step behind, since it gets the before value instead of the after value.
Change History
comment:2 Changed 4 years ago by eduardo
Small update on this fix. Plugins callbacks need to be called first than user's callbacks.
comment:3 Changed 3 years ago by LooseCannon
Can you please explain: "Plugins callbacks need to be called first than user's callbacks.". I'm experiencing the same issue with the resize callback being called before the element is resized, and before the position and size properties.
$(obj).resizable({
stop: function(event, ui) {
alert(ui.size.width + " : " + ui.size.height);
}, handles: "all", animate: true
});


Fixed in [337]