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

Ability to reset inner width, height to 'auto' #408

Open
NamesMT opened this issue Apr 14, 2024 · 3 comments
Open

Ability to reset inner width, height to 'auto' #408

NamesMT opened this issue Apr 14, 2024 · 3 comments

Comments

@NamesMT
Copy link

NamesMT commented Apr 14, 2024

There currently is no way to reset the inner width/height and widthTouched/heightTouched,
I.e: no way to make the component automatically scale again, forcing through css works look-wise, but will bugs the parent bound calculation.

@NamesMT
Copy link
Author

NamesMT commented Apr 14, 2024

Theres actually a "parent" issue that the inner width/height is not recomputed if the item inside could change it's size dynamically, so even if the current style is "auto", parent bound calculation is bugged after the item inside change it's size.

@BornInDream
Copy link

BornInDream commented Aug 22, 2024

I encountered the same problem as you. The height of my outer div is dynamically calculated, and when the height is updated twice, there will be a situation where the width and height are obtained as NaN

@BornInDream
Copy link

Have you solved this problem now? How was it resolved?

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