Skip to main content

Search and Top Navigation

#3026 closed bug (fixed)

Opened June 25, 2008 07:23PM UTC

Closed June 25, 2008 07:24PM UTC

Last modified August 06, 2009 05:01PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed June 25, 2008 07:24PM UTC by rdworth comment:1

resolution: → fixed
status: newclosed

Fixed in [337]

Changed June 25, 2008 09:49PM UTC by eduardo comment:2

Small update on this fix. Plugins callbacks need to be called first than user's callbacks.

Changed August 06, 2009 05:01PM UTC by LooseCannon comment:3

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

});