Dynamic Pane, Move Event - Constraint by Parent Container

Jack Stone shared this question 2 years ago
Answered

I am trying to understand what Constraint by Parent Container means and how it should be used in a Dynamic Panel when doing the "move" event.

Comments (3)

photo
1

Hi Jack,


Constrained by parent container means that the element will not leave the area of the container. For example, if you constrain a button to its parent container, a dynamic panel, and create a move event for the button, you will not be able to move the button outside of the bounds of the borders of the dynamic panel.


This is useful for creating movable menus that you want to confine to a specific space.


Best,


Danielle

photo
1

Hi Danielle


I am trying to create the illusion that I am repositioning / resizing an image.


So I can resize and move an image however how do I constrain the image so that it does not move past a certain position or the edge of a container ?


So, basically the container needs to be smaller than the image inside it. I need to be able to drag the bigger image(inside it), but I don't want to drag the edges of the image(Inside) past the outside edges of the container.


Hope that makes sense . .


Any suggestions on how to achieve this ?

photo
1

Hi Jack,


Have you tried to follow the instructions that Danielle gave you?


Best,


Sonia Durán