Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

setting too many constraints #15

Open
iAlborz opened this issue Oct 8, 2015 · 2 comments
Open

setting too many constraints #15

iAlborz opened this issue Oct 8, 2015 · 2 comments
Labels

Comments

@iAlborz
Copy link

iAlborz commented Oct 8, 2015

if I set left, right, and width constraints, upon resizing the art board nothing happen. since the object is over defined. (I think)
same story with setting top, bottom, and height.
is there a way to clarify this?
so if I have left and right constraints, enabling width, would disable one of the left or right ones.
or another way to make it clear that the current set of constraints are not working.

@marcbouchenoire
Copy link
Owner

Size constraints are stronger than position constraints, I chose to let all position constraints in these cases because how can I choose which constraint is more important without a strength system? As you noticed, currently only left/top and size constraints are applied in these cases.

@iAlborz
Copy link
Author

iAlborz commented Oct 11, 2015

I learnt about constraint strength two days ago from my developer friend. is there a way to show this in the interface?
maybe if the user sets all 3, (in your example, left/right/width) then the right constraint gets dimmed to 50% or something?
that way the user would know right away that their current set of constraints don't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants