Opened 9 years ago

Closed 16 months ago

Last modified 16 months ago

#3423 closed bug (fixed)

Resizable: Can't change handles after init

Reported by: Scott González Owned by: eduardo
Priority: major Milestone: 1.12.0
Component: ui.resizable Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

$(el).data('handles.resizable', X) doesn't work.

Change History (8)

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

Milestone: TBD1.6

comment:2 Changed 8 years ago by rdworth

Milestone: 1.71.8

comment:3 Changed 5 years ago by jnik

A dirty solution is to enable all the handlers that you are going to need on init.

Add a class like the following in CSS

.ui-hide-handler {
	width:0 !important;
	height:0 !important;
}

and add/remove the class to the handler DIVs according to your needs

$('.ui-icon-gripsmall-diagonal-se', element).addClass('ui-hide-handler');
$('.ui-resizable-sw', element).addClass('ui-hide-handler');

As I said, it's dirty solution but it works.

comment:4 Changed 5 years ago by kiro

Thanks jnik for providing a workaround. Just wanted to drop a note that #4310 might be related.

comment:5 Changed 5 years ago by Scott González

Milestone: 1.9.02.0.0

comment:6 Changed 5 years ago by mikesherov

Status: newopen

comment:7 Changed 16 months ago by Scott González

Resolution: fixed
Status: openclosed

In 623b64e:

Resizable: Implement setOption for handles

Fixes #3423
Closes gh-1666

comment:8 Changed 16 months ago by Scott González

Milestone: 2.0.01.12.0
Note: See TracTickets for help on using tickets.