开发者

Removing the right and bottom/right handles

开发者 https://www.devze.com 2023-03-14 22:30 出处:网络
I have the following script: http://jsfiddle.net/rYFEY/12/ Which works well, except I need to remove right and bottom-right 开发者_JAVA百科handles, only leaving the bottom handle for resizing purpos

I have the following script:

http://jsfiddle.net/rYFEY/12/

Which works well, except I need to remove right and bottom-right 开发者_JAVA百科handles, only leaving the bottom handle for resizing purposes. At the moment, if I click on the right handle, the box changes size.

That should not happen, it should always stay 100% wide, and be resizeable in height only.

How can this be done?


Use the handles-option:

handles:'s'

's' stands for 'south', which means "bottom" in resizable().

The default is 's,e,se' which means south, east,south-east (bottom, right,bottom-right)

http://docs.jquery.com/UI/Resizable#option-handles

0

精彩评论

暂无评论...
验证码 换一张
取 消