1

Sketch42

I have a symbol button with an icon (fontawesome) and a label.

Both icon and label are set to pin-to-corner, but on resizing button instances only the first element(the icon) is fixed, whilst the second element (the label) floats.

I want both to pin-to-corner. Is this possible?

6
  • Have you tried grouping them and then pinning the group?
    – Hassan
    Commented Feb 3, 2017 at 9:49
  • I have. Oddly the pin-to-corner then fails on the whole group - it feels like a bug
    – O Truckle
    Commented Feb 3, 2017 at 9:50
  • Have you tried converting the icon font to outlines? Resizing+fonts seems to be a real issue in Sketch.
    – Summer
    Commented Feb 3, 2017 at 10:17
  • The issue is not the fact the first element is an icon. In my example the first element DOES pick up on the pin-to-corner attribute (no mater if its a font or icon or outline). It's subsequent elements (in this case just text) that do not. i.e. you stretch the instance and the second element floats..
    – O Truckle
    Commented Feb 3, 2017 at 10:22
  • "Pin to corner" only pins to the nearest corner of each element. Most probably your text element is closer to the right corner and it pins there. Commented Feb 8, 2017 at 16:05

1 Answer 1

0

Enter in the symbol select every element and set pin to corner.

Or you can use this plugin https://animaapp.github.io/Auto-Layout/

4
  • 1
    Hello Stefano. Thanks for your answer and welcome to GDSE. Could you please tell us a bit more about the plugin you're linking to and explain how it answers the question? That way, your answer retains its value in case the link breaks at a later time and it makes it look less like spam. We have had a severe uptick in spam lately and the community cracks down hard on any post looking like it. Thanks! If you have any questions about the site, have a look at the help center or feel free to join us in Graphic Design Chat once your reputation allows you to (20). Keep contributing and enjoy!
    – Vincent
    Commented Feb 3, 2017 at 11:45
  • This ain't spam - it's a superb solution. Many thanks @Stefano that's a must have plugin!
    – O Truckle
    Commented Feb 3, 2017 at 12:55
  • @Vincent sorry :( Commented Feb 3, 2017 at 14:24
  • No need to be! Just trying to warn you that this style of post could easily be mistaken for spam. A bit more explanation undoes that very quickly :) @OTruckle Good to know! :D
    – Vincent
    Commented Feb 3, 2017 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.