Skip to main content

Search and Top Navigation

#2884 closed bug (notabug)

Opened May 16, 2008 03:47PM UTC

Closed May 16, 2008 04:07PM UTC

Last modified February 23, 2009 09:28AM UTC

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:
Description

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

Attachments (0)
Change History (3)

Changed May 16, 2008 04:07PM UTC by scottgonzalez comment:1

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:

$(myDiv).resizable('destroy');

Or change your third call to:

$(myDiv).resizable('enable');

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 23, 2009 09:28AM UTC by tcarnell comment:3

yep, my fault - thanks for the reply.