-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Width of the window title bar with custom frame #4024
Comments
Related Issue: #3806 The egui::Window active. Until the bug is fixed, let mut visuals = ui.visuals_mut().clone();
visuals.window_highlight_topmost = false;
ui.ctx().set_visuals(visuals); |
I'm editing this issue for Pull Request, and I think I'll have it done soon. |
Thank you! |
…order or large rounding (emilk#4032) Currently, the Window frame is displayed incorrectly when using a wide border or large rounding. * Closes emilk#3806 * Closes emilk#4024 * Closes emilk#4025 * Screencast of egui demo app (emilk:master) [window-frame-bug.webm](https://github.com/emilk/egui/assets/1274171/391f67fa-ae6f-445a-8c64-1bb575770127) * Screencast of egui demo app (varphone:hotfix/window-custom-frame) [window-frame-fixed.webm](https://github.com/emilk/egui/assets/1274171/1953124e-9f7a-4c2d-9024-5d2eece6b87c)
Describe the bug
While testing #4002 (thanks for the fast fix!) on 0.26.1, I found another issue, or at least I think it was not desired. When setting the inner margin and stroke, the title bar is wider than the window's content as can be seen below. I've put some ridiculous values to show it clearly, but it's visible even when the stroke is just a few pixels wide.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The title bar should respect margin/stroke settings and have the same width as the rest of the window.
The text was updated successfully, but these errors were encountered: