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

Horizontally resizing text example causes crash when window size becomes sufficiently small. #1216

Open
emdash opened this issue Nov 21, 2018 · 2 comments
Labels

Comments

@emdash
Copy link

emdash commented Nov 21, 2018

cargo run --release --features winit glium --example text

Wait for the build. Resize the window until it's essentially almost 0 sized, at some point you will see the UI stop reacting. Now expand the window. Instead of rendering text, the window decorations smear. Seems like maybe some division-by-zero type bug.

@universeroc
Copy link

Yes, I run into the same problem, even run as debug version :(

@shanehandley
Copy link
Contributor

This appears to be caused by the window size becoming too small to acommodate applied padding:

const PAD: Scalar = 20.0;

Needs some investigation 🔬.

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

No branches or pull requests

3 participants