Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2884 closed bug (notabug)

resizable disable does not remove style classes from div

Reported by: tcarnell Owned by: paul
Priority: major Milestone:
Component: ui.core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


To expose the bug, I have code like this:

$( myDiv).resizable({ handles: 'all', autohide: true }); $( myDiv).resizable( "disable" ); $( myDiv).resizable({ handles: 'all', autohide: true });

The result of the above three lines of code SHOULD be that 'myDiv' IS resizable. However, after these lines are executed 'myDiv' is not resizable.

It seems that the style classes 'ui-resizable' & 'ui-resizable-autohide' are not removed from the div when ".resizable( "disable" );" is called.

version: jquery-1.2.4a.js & jqueryjs-ui-1.5b2

Change History (3)

comment:1 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

Disabling is different from destroying. When you disable a plugin, the plugin remains instantiated and can be re-enabled (using the enable method). Because of this, your third call to resizable is invalid and therefore ignored. Having a disabled resizable after those three calls is the correct behavior.

Either change your second call to:


Or change your third call to:


comment:2 Changed 13 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:3 Changed 13 years ago by tcarnell

yep, my fault - thanks for the reply.

Note: See TracTickets for help on using tickets.