Opened 8 years ago

Closed 8 years ago

#10000 closed bug (notabug)

User should be able to manually set height and width in resize()

Reported by: thb Owned by:
Priority: minor Milestone: none
Component: ui.resizable Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:

Description

There are cases where existing snap-to-grid functionality is not enough. In those cases user could set element width and height manually in resize-callback. This works for draggable, but not for resizable.

This seems to be because user callback is called after css properties are set in _mouseDrag().

http://jsbin.com/mizejiva/2/

Windows 7, Chrome 34.0.1847.116.

Change History (1)

comment:1 Changed 8 years ago by tj.vantoll

Resolution: notabug
Status: newclosed

Hi thb,

Thanks for taking the time to contribute to jQuery UI. The size object is read only, but you can use the ui.element reference to alter the size: http://jsbin.com/mizejiva/4/edit

Note: See TracTickets for help on using tickets.