You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue where whenever I set window_title_bar_hidden to True the window would straight up not adhere to my set values for my minimum and maximum window width and height
Code example to reproduce the issue:
importfletasftdefmain(page: ft.Page):
#Code Contains Min and Max Valuespage.window_max_width=600page.window_max_height=800page.window_min_width=500page.window_min_height=500#values are respected when titlebar is visible but when not they are ignored page.window_title_bar_hidden=Falsepage.window_title_bar_buttons_hidden=Falsetitlebar=ft.Row(
[
ft.WindowDragArea(content=ft.Container(ft.Text("Drag area"), padding=10), expand=True),
ft.IconButton(ft.icons.CLOSE, on_click=lambda_: page.window_close(),)
]
)
page.add(
titlebar,
ft.Text("Window")
)
page.update()
ft.app(target=main)
Describe the results you received:
Window straight up didn't follow the set values I had when I made the titlebar hidden and allowed me to just resize it however I wanted (which is undesirable in my case)
Video demonstration below
2024-05-07.12-39-41.mp4
Describe the results you expected:
The same result I've received
Flet version (pip show flet):
Name: flet
Version: 0.22.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: /home/nexus/.local/lib/python3.12/site-packages
Requires: cookiecutter, fastapi, flet-runtime, packaging, qrcode, uvicorn, watchdog
Required-by:
Give your requirements.txt file (don't pip freeze, instead give direct packages):
its basically just flet as its pretty basic
flet
Operating system:
Linux, Fedora 40, Kernel 6.8.8-300.fc40.x86_64
The text was updated successfully, but these errors were encountered:
Description
I have an issue where whenever I set window_title_bar_hidden to True the window would straight up not adhere to my set values for my minimum and maximum window width and height
Code example to reproduce the issue:
Describe the results you received:
Window straight up didn't follow the set values I had when I made the titlebar hidden and allowed me to just resize it however I wanted (which is undesirable in my case)
Video demonstration below
2024-05-07.12-39-41.mp4
Describe the results you expected:
The same result I've received
Flet version (
pip show flet
):Give your
requirements.txt
file (don'tpip freeze
, instead give direct packages):its basically just flet as its pretty basic
Operating system:
Linux, Fedora 40, Kernel 6.8.8-300.fc40.x86_64
The text was updated successfully, but these errors were encountered: