Skip to main content
Question

A component instance is behaving different from its main component

  • August 26, 2021
  • 2 replies
  • 1106 views

Matheus

Hey, y’all! I have encountered a rather weird behavior with components that I can’t explain.

Background: I have created a master component survey slider. That has nested components in an auto-layout frame. Now one of the nested components, survey answer, has variants with varying heights and widths (a date picker, a group of card selects, a quantity stepper, etc.).

If I change the variants of survey answers within the auto-layout frame in the Master Component the height and width adjust very nicely. (Constraints set to a fixed height, fixed-width in the auto-layout frame)

However, when I do the same thing in an instance of that main component, the height, and width of the survey answer component is messed up.

Now, my hunch is that since the width and height constraints are set to fixed the main component should not be actually adjusting so nicely. But it might as well be an issue with the instance.

Either way, there seems to be a discrepancy between the main and instance components, that I don’t understand.

Helpful for every pointer to fix this 🙂
Thank you <3

This topic has been closed for comments

2 replies

Matheus
  • Author
  • 1 reply
  • August 26, 2021


  • 0 replies
  • September 25, 2021

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