Skip to main content
Solved

Componet not sizing correctly when var is applyed


Greg_von_Neulich

 

Im having a problem with comonents when the size is set by a variable and the aspect ratio is locked.

https://www.figma.com/design/JZunLI0B65xrRYRCmKWt4I/Component-Size-var-Bug?node-id=0-1&t=0OWhhCZcN6yK8qEP-1

 

1: You can see in this doc the component is designed in 100x100.

2: With aspect ratio locked and entering the size manualy to 120 things work as expected.

3: When the size is applyed as a var the size is incorrect 109,54x109,54

4 Without the aspect ratio lock the hight is correct when the var is applyed

5: The basic frame not made into a component works with the var as expected.

 

Has anyone else noticed this behaviour and have you found a sollution?

 

Thanks

 

 

Best answer by Greg_von_Neulich

Ill answer my own question the lock needs to be set on the compont itself as well.

 

 

View original

2 replies

Greg_von_Neulich

Ill answer my own question the lock needs to be set on the compont itself as well.

 

 


Celine_
Figmate
  • Community Support
  • 3582 replies
  • April 23, 2025

Hey there! Glad to hear you have found a solution. ðŸ™‚

I’ve gone ahead to mark as solved your topic, thank you!


Reply


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