possible to constrain jQuery resize to x or y axis, like drag constrain?
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-05-12T19:02:25Z
Indexed on
2010/05/12
19:04 UTC
Read the original article
Hit count: 225
This jQuery lets you constrain drag movement so it occurs only on the axis specified:
$("#draggable2").draggable({ axis: 'x' });
See: http://jqueryui.com/demos/draggable/#constrain-movement
This is not legal jQuery but I wish it were:
$("#Container").resizable({ minHeight: 150, containment: {axis:'y' } });
Is it possible to prevent the user from making #Container wider while allowing her to make it taller?
Thanks
© Stack Overflow or respective owner