How to resize ONLY horizontally or vertically with jQuery UI Resizable?

前端 未结 7 2257
长情又很酷
长情又很酷 2020-12-12 23:29

The only solution I\'ve found is to set the max and min height or width with the current value.

Example:

foo.resizable({ 
  maxHeight: foo.height(),          


        
7条回答
  •  攒了一身酷
    2020-12-13 00:08

    You could set the resize handles option to only show on the left and right (or east/west), like this:

    foo.resizable({
        handles: 'e, w'
    });​
    

    You can give it a try here.

提交回复
热议问题