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

Resizing windows below their minimal size considers the cursor position as the window edge #5696

Open
Pandicon opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something is broken

Comments

@Pandicon
Copy link
Contributor

Pandicon commented Feb 8, 2025

Describe the bug

When resizing a window, it will stop shrinking at some point due to a minimum width caused by inner widgets. However, if one ignores the fact and tries to resize it below this width, the inner widgets are rendered as if the window was actually being resized. The widgets shrink in width, stopping at some mysterious value (maybe an internal minimal width?).

To Reproduce
Steps to reproduce the behavior:

  1. Go to the egui.rs demo
  2. Try making the "Font book" or "Panels" windows as narrow as possible (the bug is present everywhere, but here it is easy to notice)

Expected behavior

Once the window stops shrinking, the inner widgets do not change if one moves their mouse inwards.

Screenshots

2025-02-08.11-57-04.mp4

Desktop:

  • OS: Windows 10 Pro, 22H2
  • Browser: Microsoft Edge v133.0, Google Chrome v133.0, Mozilla Firefox v135.0 (present in all of them)

Mobile:

  • OS: Android 14, OneUI 6.1.1

Additional context
I noticed this issue in my app, running on Windows 10, but using egui 0.30, so it is not an issue in just egui 0.31. Not sure about older versions of egui.

@Pandicon Pandicon added the bug Something is broken label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant