Opened 10 years ago

Last modified 6 years ago

#4310 open bug

Resizable: custom handles do not work

Reported by: PsychodelEKS Owned by:
Priority: major Milestone: 2.0.0
Component: ui.resizable Version: 1.7
Keywords: resizable handles Cc:
Blocked by: Blocking:

Description

According to documentation, one can specify custom objects-handlers for resizing. I've tried creating resizable object with the following settings:

<div class="wnd_container">

<div class="wnd_border wnd_top_left"></div> <div class="wnd_border wnd_top_right"></div> <div class="wnd_border wnd_bottom_right"></div> <div class="wnd_border wnd_bottom_left"></div> <div class="wnd_content">

Some text.

</div>

</div>

$('.wnd_container').resizable({ handles: {

ne:'div.wnd_top_right', se:'div.wnd_bottom_right', sw:'div.wnd_bottom_left', nw:'div.wnd_top_left'

} });

but the object can not be resized with those =( Though if I manually add resizable classes (e.g. "ui-resizable-se ui-resizable-handle") they start working (with/without handles option specified).

Url to test: http://psychodeleks.sabay.ru/test/resizable_test.html

Change History (7)

comment:1 Changed 10 years ago by Jörn Zaefferer

Milestone: TBD1.7.2

comment:2 Changed 10 years ago by Jörn Zaefferer

Milestone: 1.7.21.8

comment:3 Changed 7 years ago by postal2600

Has anyone else fixed/started fixing this already? Otherwise, I'm on it.

comment:4 Changed 6 years ago by kiro

Got here by searching the bug tracker for tickets on "resizable handles". I think this can be broken down to "setting handles on init works, using the setter after init won't work".

WORKS: $("#resizable").resizable( {handles: 'e, w'} );

WON'T WORK: $("#resizable").resizable( ); $("#resizable").resizable( "option", "handles", 'e, w' );

Bug #3423 might be related.

Cheers!

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

@kiro That's a very different bug.

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

Milestone: 1.9.02.0.0

comment:7 Changed 6 years ago by tj.vantoll

Status: newopen
Summary: Resizable custom handles not workingResizable: custom handles do not work

Verified this is still an issue in 1.9.1 - http://jsfiddle.net/tj_vantoll/pFfKz/.

Note: See TracTickets for help on using tickets.