AnimaApp / Auto-Layout

Auto Layout for Sketch
https://animaapp.github.io/Auto-Layout
856 stars 40 forks source link

Bounding box doesn't update correctly when text with padding is updated #110

Open ayjee opened 5 years ago

ayjee commented 5 years ago

I have a button symbol which contains a group, which has a text layer and a nested symbol for the buttons layer styles (background-color and border-radius). When attempting to override the text content in the symbol, the padding on the group will update correctly via anima, but the bounding box around the button adds extra whitespace around the symbol. In the case of this gif it adds a half pixel on the left and on the right it adds whitespace to match the original symbol size.

If I tinker with it by adding different text content it will sometimes resize to no longer be the same size as the original symbol, but when entering certain strings the extra half pixel always remains around the bounding box on the left/right sides. For example, there were other times I used the string "Cancel" and the bounding box updated to have a half pixel extra on the left and the right side.

Screen Recording 2019-04-18 at 10 53 AM