Open hyx0329 opened 1 year ago
The minimum dimensions are respected on my end. Add the code line below to better observe the window behavior.
page.on_resize = lambda e: print(page.window_width, page.window_height)
A video capture with the app's window on one side and the printed values on the other could be useful.
Sure, here is the capture recorded on GNOME(X11) with OBS.
https://github.com/flet-dev/flet/assets/11469710/bb6e977c-be41-40a9-95df-8144a26fd7c0
Yup! There is definitely an issue, and it's certainly OS-specific.
Description
I would like to make a customized frameless window. The window has a minimum size requirement for elements to be shown properly. I found that when
window_title_bar_hidden
is set, neitherwindow_min_height
norwindow_min_width
is effective.Code example to reproduce the issue:
Describe the results you received:
The window can be resized to any arbitrary size.
Describe the results you expected:
The window shouldn't be smaller when limits are hit.
Additional information you deem important (e.g. issue happens only occasionally):
Async runtime is also affected.
Flet version (
pip show flet
):Operating system:
ArchLinux
Additional environment details: