Skip to main content
Question

Instance behaves differently from master component (bug?)


Onno_Personal

See attached file; a simple expanding menu component with 2 states.
When used in an ‘app’ component it works as expected; when the menu expands the top bar shrinks because its width is set to ‘Fill’. Nice.

But on instance of the app component, it no longer works. The menu does not expand.

Found quite a few ’ instance behaves differently’ posts, but do not understand what is happening here. Is this a bug? Anyone got an idea how to fix/workaround?

Expanding menu.fig (24.2 KB)

This topic has been closed for comments

3 replies

y_toku
Figmate
  • Community Support
  • 2383 replies
  • November 7, 2023

Hi there, thanks for reaching out. When I checked with our internal team about this behavior, it seems there’s a feature limitation. However, there is a workaround.

Once you add an auto layout for the main component with Hug properties, it should work.


Am I understanding the issue you are describing correctly? I hope this helps, but please let me know if I’m missing any additional points. I want to make sure I am fully addressing your questions.

Thanks,
Toku


Onno_Willems
  • New Participant
  • 10 replies
  • November 7, 2023

Yes @y_toku, you understood the issue correctly and the fix/workaround works perfectly!
Many thanks for the excellent response including that video, really appreciated! 👍

(in my real implementation the added auto-layout messed up my menu item spacing so had to correct by framing those, but no biggy).


y_toku
Figmate
  • Community Support
  • 2383 replies
  • November 8, 2023

Thank you for the warm response! I’m glad you could successfully make your frames work:) Thanks!


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