egui
egui copied to clipboard
Tables/Strip windows enlarging on repaint with scales slightly larger than 1
Describe the bug The table/strip windows in the demo app grow slightly larger with each frame rendered when using scales slightly larger than 1. Tested with 1.08. A video describes it well.
Also happens on web (Just set the scale by using Ctrl+scroll wheel or Ctrl + +/-)
To Reproduce Steps to reproduce the behavior:
- Open the demo app.
- Open the strip & table demos.
- Set the scale to 1.08.
- Move the cursor around or set the repaint mode to continuous.
Expected behavior The strip and table windows should keep their original size.
Additional context Tested on latest master + web demo
I can reproduce this on the latest web demo aswell:
https://user-images.githubusercontent.com/14093962/167803740-fd00cd72-bc70-4130-9c4c-ab648914f492.mp4
Duplicate of https://github.com/emilk/egui/issues/1543 ?
Duplicate of https://github.com/emilk/egui/issues/1543 ?
Yup, didn't see that one! Looks like the cause of the problem is scaling, and it doesn't just happen with tables though.
Any updates or suggestions where to look if I wanted to take a stab at this?
For now I'm resolving it with a bounding container of a fixed size, e.g., Size::exact() or Size::remainder().at_most(), so probably I'll look in there.
Hi,
I'm not sure if its related but I'm experiencing something similar with tables:
I have a table in a window inside centerpanel and somehow when i resize the main window , for example by making it fullscreen, the table width grows with it (i can see it by looking at the scroll bar). I'm fairly confident it is linked to the Table widget because i have other widgets in their own windows and there's no problem.
Here's the size by default (the scrollbar is already there even though the widget fits in width):
Here's the size when i increase the main window size:
Forgot to mention my screen scale is 1
Also, to provide more information, it looks like the window holding the table does not respect its parent size and also goes over bottom bar