You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I currently have a couple of Leva Panels on my project and I'm trying to have one initialized uncollapsed. The panel initializes looking just fine, but since the inputs for the panel are changing dynamically with clicks on the screen, the size of the panel is failing to resize to accommodate the new number of inputs. I know dynamic resizing is possible because if I manually collapse and uncollapse the Panel it then begins resizing properly to the change of inputs. Any ideas on how I can fix it so it starts resizing properly from the start without having to uncollapse manually?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I currently have a couple of Leva Panels on my project and I'm trying to have one initialized uncollapsed. The panel initializes looking just fine, but since the inputs for the panel are changing dynamically with clicks on the screen, the size of the panel is failing to resize to accommodate the new number of inputs. I know dynamic resizing is possible because if I manually collapse and uncollapse the Panel it then begins resizing properly to the change of inputs. Any ideas on how I can fix it so it starts resizing properly from the start without having to uncollapse manually?
Starting with collapsed ={false}
After manually collapsing and uncollapsing:
Beta Was this translation helpful? Give feedback.
All reactions