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

UI sometimes looks invalid when adjusting size #5681

Open
showier-drastic opened this issue Jul 24, 2024 · 3 comments
Open

UI sometimes looks invalid when adjusting size #5681

showier-drastic opened this issue Jul 24, 2024 · 3 comments
Labels
a:backend-winit Winit backend (mS,mO) a:platform-macos Issues specific to macOS (mS,bF) bug Something isn't working

Comments

@showier-drastic
Copy link

Platform: macOS ARM + latest Rust

Reproduction code: https://github.com/showier-drastic/slint-rust-bug-demo

I have written code to do a simple layout, where the font size of numbers are adjusted with window size, and the rest of the window is filled with blue color. The code is pretty simple:

image

Now the bug is, when you drag the corner to adjust the window size and release the mouse, there's some chance that the window will display something crippled, like shown in the video:

2024-07-24.19.33.24.mov

Note that this happens probabilistically (most time it works), but it typically will happen within 1 minute of playing.

@tronical tronical added bug Something isn't working a:platform-macos Issues specific to macOS (mS,bF) a:backend-winit Winit backend (mS,mO) labels Jul 24, 2024
@tronical
Copy link
Member

Thanks for the graphical report :). I'm curious, could you try enabling the renderer-skia feature and see if that changes the output for you? (that'd use a meta CA layer, instead of nsopenglcontext)

@showier-drastic
Copy link
Author

No, does not happen with skia.

@tronical
Copy link
Member

Thanks for confirming. I suggest that as a workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:backend-winit Winit backend (mS,mO) a:platform-macos Issues specific to macOS (mS,bF) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants