Skip to main content
Participant
July 3, 2020
Answered

Bug with component

  • July 3, 2020
  • 5 replies
  • 754 views

When I hide a group inside the component, then component size is not behaviour correct.  I am getting correct behaviour after doing something else like changing any text inside the component. Here is the screenshot of the issue.

When I hide the dropdown group from layers panel and result:


    This topic has been closed for replies.
    Correct answer Spas K.

    Thank you so much, but unfortunately not working. I am fixing it for example with editing label text, Then this is creating other problems like;
    For example, when I resize the master component (on default state) result is being different in the default state (hidden dropdown) and on the new state (visible dropdown). Field responding/resizing correctly in default state but field resizing not effecting on the new state.


    Yes, I understand. The whole components and states feature has issues like that rather often.

    It's a good practice to set everything up before making the component, and when you have all the elements ready just show and hide them depending on the state.

    Working on the elements while they are in a component and you have multiple states is a bad idea and glitches like that happen all the time.

    5 replies

    Spas K.
    Community Expert
    Community Expert
    July 3, 2020

    Can you include the layers panel in the screenshot?

    digitaAuthor
    Participant
    July 3, 2020

    Spas K.
    Community Expert
    Community Expert
    July 3, 2020

    There's a bug I noticed some time ago that happens sometimes.

    When you make a component from multiple elements, instead of grouping the elements first, it doesn't change its constraints.

     

    Try the following:

    1. Ungroup the component.

    2. Group all elements in one main group.

    3. Make that group into a component.

     

    Try hiding some elements and see if it works properly.