egui icon indicating copy to clipboard operation
egui copied to clipboard

TableDemo height

Open edulecom opened this issue 3 years ago • 1 comments

Hello,

TableDemo windows is growing whenever a mouse is moved. Screen recording is from web demo. Windows desktop app has the same problem.

https://user-images.githubusercontent.com/104624770/165926374-d175e9d6-73b8-47b0-a6ae-2d601614f265.mp4

.

edulecom avatar Apr 29 '22 10:04 edulecom

Additional info: I have 2 monitors and this is an issue only on HD monitor (4096 x 2160)

edulecom avatar May 07 '22 10:05 edulecom

I can reproduce this. On my notebook without external display attached, the guessed window scale factor is 1.75 and the table / strip demos are growing when the mouse is moved. However, the changes of https://github.com/emilk/egui/pull/2099 solved that issue too. image

njust avatar Oct 11 '22 20:10 njust

It also happens for the Strip Demo.

Timmmm avatar Jan 15 '23 14:01 Timmmm

I think it is a issue of ui.avalible_rect(). Seems that it doesn't take into account the margins of the frame and reports wrong size. Then the widget will try to expand larger, and in the next frame the window will try to fit it, then the window will grow a bit and margins are added to this new size.

liquidhelium avatar Jan 21 '23 03:01 liquidhelium

Plus: a bottom_up layout will also cause this issue.

liquidhelium avatar Jan 21 '23 03:01 liquidhelium