emilk / emilk/egui

`frame.set_window_size(ctx.used_size());` is broken

Open
#403 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

Manually resizing the OS window makes the height of the window increase too much. It will even overflow the screen height, and can actually grow infinitely.

**To Reproduce**
1. Run any native egui app
2. Resize the window horizontally
3. Press Alt+tab to see the window growing vertically

**Expected behavior**
The height of the window should be conserved when resizing the window horizontally, and should increase slower when resizing the window vertically.

**Screenshots**
![The bug](https://cdn.discordapp.com/attachments/486894355555024906/843524312450990127/bug.png)

**Desktop**
- OS: Ubuntu
- Version: 21.04

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.