Hi folks, is possible to adjust the Window size to the space that my components take on the screen? I want to achieve something like this (prints in the thread)
SrSouza
03/10/2021, 12:54 PM
message has been deleted
SrSouza
03/10/2021, 12:54 PM
message has been deleted
t
TheMrCodes
03/10/2021, 10:42 PM
Best you just set your window size to a static size and resize is every time the list gets updated
Copy code
AppManager.windows.first().setSize(width, height)
t
Timo Drick
03/11/2021, 12:45 PM
I think this was alread discussed in a thread. At this time there where no out of the box solution. So you have to do it by hand. S.th. like wrap your UI with a Modifier.wrapContentSize and measure the size to set the window size.