egui icon indicating copy to clipboard operation
egui copied to clipboard

Tables/Strip windows enlarging on repaint with scales slightly larger than 1

Open aleokdev opened this issue 2 years ago • 5 comments

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:

  1. Open the demo app.
  2. Open the strip & table demos.
  3. Set the scale to 1.08.
  4. 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

aleokdev avatar May 04 '22 09:05 aleokdev

I can reproduce this on the latest web demo aswell:

https://user-images.githubusercontent.com/14093962/167803740-fd00cd72-bc70-4130-9c4c-ab648914f492.mp4

DusterTheFirst avatar May 11 '22 08:05 DusterTheFirst

Duplicate of https://github.com/emilk/egui/issues/1543 ?

emilk avatar May 11 '22 10:05 emilk

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.

aleokdev avatar May 11 '22 10:05 aleokdev

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.

peragwin avatar Aug 12 '22 00:08 peragwin

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): image

Here's the size when i increase the main window size: image

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

Vaelio avatar Aug 26 '22 10:08 Vaelio