Jump to content
m.vlad

Layer is treated as a group when constraints are added

Recommended Posts

2 hours ago, GabrielM said:

Hi @m.vlad,

I don't follow you on this. What do you expect to happen when you apply constraints to those objects? Constrains do not exist outside groups. 

Thanks,

Gabe. 

Not do anything or treat the artboard as the constraint group. I don't expect it to change a layer into a group.

Also slightly unrelated, but constraints group cropping into the elements works fine for the most part, but they also crop the layer effects like drop shadow. Meaning one has to add the effect to the entire constraints group if at all.


Mădălin Vlad
Graphic Designer

Share this post


Link to post
Share on other sites

A layer evaluates its size from its contents, asking each one where they are: Imagine if one object was assigned the constraint of 'constrain right’ so it asked its parent where the right of the bounds was, if the parent then asks the children where they are it would be a cyclic loop as the parent would be asking the ‘constrained right’ object where it is, which in turn must ask the parent how big it is, which then asks the child whereabouts it is, and so on.

A ‘Constraints Group’ is a physical object - it has size and hence doesn’t need to ask the children whereabouts they are, and this is required for constraints to actually operate. The parent of a constrained object must always have physical size and that’s the only reason the ‘Constraints Group’ object exists. It is always used to replace a group/layer when one of the children becomes constrained.

16 hours ago, m.vlad said:

Also slightly unrelated, but constraints group cropping into the elements works fine for the most part, but they also crop the layer effects like drop shadow. Meaning one has to add the effect to the entire constraints group if at all.

Can you please explain what you mean by this? 

Share this post


Link to post
Share on other sites
2 minutes ago, GabrielM said:

A layer evaluates its size from its contents, asking each one where they are: Imagine if one object was assigned the constraint of 'constrain right’ so it asked its parent where the right of the bounds was, if the parent then asks the children where they are it would be a cyclic loop as the parent would be asking the ‘constrained right’ object where it is, which in turn must ask the parent how big it is, which then asks the child whereabouts it is, and so on.

A ‘Constraints Group’ is a physical object - it has size and hence doesn’t need to ask the children whereabouts they are, and this is required for constraints to actually operate. The parent of a constrained object must always have physical size and that’s the only reason the ‘Constraints Group’ object exists. It is always used to replace a group/layer when one of the children becomes constrained.

Can you please explain what you mean by this?

So from your previous description I understand the constraints group acts as a physical container, thus needing a physical size. The issue I've mentioned is that if you group objects with effects that go outside of their alpha and then change that group to a constraints group, the effects get cropped. Would it not be possible to either have the conversion of the group take into consideration the effects size too?

Designer_2019-08-16_13-02-31.png.dfddea736899f9cc9b0abb283bae8060.pngDesigner_2019-08-16_13-02-43.png.1d0dc97e9b13cc0e8341b6cc18dbdc8d.png


Mădălin Vlad
Graphic Designer

Share this post


Link to post
Share on other sites
13 minutes ago, m.vlad said:

Would it not be possible to either have the conversion of the group take into consideration the effects size too?

Good question. Will see what our developers think :)

Share this post


Link to post
Share on other sites

Update: For now this is the intended behaviour. It as if you put them inside a clipping rectangle. What you can do is resize the container, therefore resizing the clipping area. But you would need to do this before constraining. Moved to feature requests 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.