-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When the window width is adjusted, the width of the Button component also scales along with the container. #4521
Comments
Could you provide a screen recording and the full source code (include imports)? This doesn't reproduce on my Mac, but there's nothing here that is OS-specific. Screen.Recording.2024-03-21.at.11.37.32.mp4 |
I'm running on Windows 10. This is a video recording. I'll test on Mac later. libs.versions.toml VID_20240322_115405.mp4 |
The following is the performance of the above code on Windows 11. 20240322_172837.mp4 |
This is a problem at the level of skiko and seems to be the result of how we tell Windows to scale the contents of the window until we update the picture here. There's no easy fix for this. We could tell Windows not to stretch the picture, but then you'd probably see black bars when resizing. The real fix would be to make sure we update the picture before the next screen refresh. |
Thank you for your answer. I hope it can be optimized! |
Found issues about "black bars" instead of streaching - #2925 |
Describe the bug
When the window width is adjusted, the width of the Button component also scales along with the container.
Affected platforms
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Adjust window width after running
The text was updated successfully, but these errors were encountered: