Jump to content
You must now use your email address to sign in [click for more info] ×

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
Link to comment
Share on other sites

  • Staff

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? 

Link to comment
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
Link to comment
Share on other sites

  • Staff

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 

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.