我找到的唯一解决方案是用当前值设置最大和最小高度或宽度.
Example:
foo.resizable({
maxHeight: foo.height(),
minHeight: foo.height()
});
But this is really ugly, especially if I have to change the element's height programmatically.
我找到的唯一解决方案是用当前值设置最大和最小高度或宽度.
Example:
foo.resizable({
maxHeight: foo.height(),
minHeight: foo.height()
});
But this is really ugly, especially if I have to change the element's height programmatically.
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'
});