Skip to main content
Solved

Right constraint doesn't work in instance of component


Tema_Zimmer

Hi folks, I’m trying to use an absolutely positioned icon in the card component. I set the position to top and right, and it only works correctly in the main component. But in the instance, this icon is only fixed at the top.

How can I achieve the similar behaviour that I have in the main component in instances?

Best answer by tank666

I noticed that you used a boolean exclude operation and set the constraints on this object. Figma doesn’t handle this correctly in instances, so you need to wrap that object in a frame, and set that frame to the necessary constraints.

View original
This topic has been closed for comments

6 replies

Tema_Zimmer

Tema_Zimmer


Ryan_52
Figmate
  • Technical Quality Specialist
  • 382 replies
  • June 9, 2023

Hi @Tema_Zimmer Sorry to hear you’re having trouble! The forum is primarily managed by the community. Can you please reach out to the support team directly via this form for help: https://help.figma.com/hc/en-us/requests/new

Be sure to use your Figma account email, include these links to the file, and share it with support-share@figma.com so they can take a closer look.


tank666
  • 4863 replies
  • Answer
  • June 10, 2023

I noticed that you used a boolean exclude operation and set the constraints on this object. Figma doesn’t handle this correctly in instances, so you need to wrap that object in a frame, and set that frame to the necessary constraints.


Tema_Zimmer

@tank666 Thanks a lot! I wrapped this icon and it works just right!


  • 0 replies
  • July 11, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings