egui
egui copied to clipboard
TableDemo height
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
.
Additional info: I have 2 monitors and this is an issue only on HD monitor (4096 x 2160)
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.

It also happens for the Strip Demo.
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.
Plus: a bottom_up layout will also cause this issue.