Constraints to margin

Hi,

I have a question about the Constraint to Margins option when setting up the constraints.51

As my screenshot indicates, I set the tail constraint of the Detail label to be 16 (constraint to margins option checked). I thought the label would move to left a bit, but the fact is that the label moves to the right.

Could you explain a bit?

The constant value of a constraint is added to the second item in the constraint. So if you set the second constraint as the trailing margin and the constant as 16, it would be trailing margin + 16 making it move further to the right. If you want it to move to the left, then you should provide the constant value as -16.

This topic was automatically closed after 166 days. New replies are no longer allowed.