-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing from top or left border disabled by default #37
Comments
It is intentional and I don't think it would be a good idea to change it soon. The resize If you will have elements which are resize handles, you can make them draggable and resize the item that they surround in response to the drag events. |
Hi taye! Could you give an example of what you said, a resizable item in response to the drag events of one of the item's handles. I couldn't get it… Thanks! |
Here's one I made in a hurry about a month ago: http://plnkr.co/edit/F9eey5rK2yDkBNuWq7TT?p=info Most of the relevant code is in the
|
Than you!!! I will try! |
+1 for this feature. In the meantime I'll implement it with multiple draggable nodes. |
+1 for this as well! |
+1, this blocked me from using interact.js (had to switch to jquery ui). My app requires a sidebar on the right side of the page. Resizing would only work from the left edge. |
As noted above the previous two comments, four-direction resizing is being implemented in PR #145. You can try it out now; I don't think the API will change much before it's ready to be merged. I'd appreciate any feedback. |
will do, thanks @taye! |
It seems resizing an element is only enabled by default along the bottom and right borders. In other words, if the dotted lines in this image were element boundaries, the resize handles marked "X" would not work at all, and those marked "/" would only work along one dimension:
Is this behavior intentional, or am I doing something wrong? If the former, would you be amenable to a PR to enable resizing along all four borders?
The text was updated successfully, but these errors were encountered: