Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem when container invisible #58

Open
aahmetcakir opened this issue Oct 17, 2024 · 2 comments
Open

There is a problem when container invisible #58

aahmetcakir opened this issue Oct 17, 2024 · 2 comments

Comments

@aahmetcakir
Copy link

When the wrapper component is invisible, the char heights are 0 and later when the container becomes visible, the height value does not change. To try, you can set one of the containers on the demo page to display none and remove it again.

image
@almond-bongbong
Copy link
Owner

Thank you for bringing this issue to our attention. We will look into it.

@almond-bongbong
Copy link
Owner

As far as I know, there isn't a straightforward way to monitor when an element becomes visible on the screen. (If you know of a good method, please let me know anytime.)

Therefore, as a possible solution, I recommend using the refreshStyles method provided by the ref instance to recalculate the styles at the point when the component needs to be redisplayed or recalculated. This can be done when the component becomes visible again or when you determine that a recalculation is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants