Opened 14 years ago
Last modified 4 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 (8)
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.7.2 |
---|
comment:2 Changed 14 years ago by
Milestone: | 1.7.2 → 1.8 |
---|
comment:3 Changed 11 years ago by
comment:4 Changed 10 years ago by
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:6 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
comment:7 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | Resizable custom handles not working → Resizable: custom handles do not work |
Verified this is still an issue in 1.9.1 - http://jsfiddle.net/tj_vantoll/pFfKz/.
comment:8 Changed 4 years ago by
Documentation mentions that the CSS classes need to be set -> I'd suggest to close the ticket.
Has anyone else fixed/started fixing this already? Otherwise, I'm on it.