Search and Top Navigation
#7878 open feature ()
Opened November 14, 2011 11:33AM UTC
Last modified October 28, 2012 02:37AM UTC
Resizable: Add option for setting the resize center
Reported by: | acme | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.resizable | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently Resizable is using the top left coordinates of the element as resizing center and is resizing to the bottom right.
It would be nice if there was an option to set the resizing center/origin e.g. to the center of the element so it grows to all sides equally.
Sorry, I don't know what's the correct term for "center/origin" in English for describing this feature.
Something like this:
$( ".selector" ).resizable({ origin: 'ne' }); (which is currently the default behaviour
or
$( ".selector" ).resizable({ origin: 'center' });