matt-curtis / Fluid-for-Sketch

[Sketch Plugin] Sketch-flavored Auto Layout-like Constraints
2.38k stars 73 forks source link

Critical error: relationships multiply Math #130

Open azumbrunnen opened 7 years ago

azumbrunnen commented 7 years ago

Every time you hit "update layout" it adds the previous value on top of an existing one and therefore destroys the whole layout.

If you define a relationship between a text-layer and its background (for instance to model consistent padding for a button), I define a left and right margin of 22px. Every time you hit update layout, 22px gets added to the already existing 22px and so on.

screen shot 2017-08-22 at 3 20 06 pm

This error unfortunately makes the whole plugin unusable.

matt-curtis commented 7 years ago

Thanks for reporting this. Is it possible you could share a demo document?