bug: Window sizing issues on Linux
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
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, neither window_min_height nor window_min_width is effective.
Code example to reproduce the issue:
import flet as ft
def entry(page: ft.Page):
content = ft.Text("Hello world!")
page.add(content)
page.window_title_bar_hidden = True
page.window_min_height = 600
page.window_min_width = 800
page.update()
ft.app(target=entry)
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):
Name: flet
Version: 0.9.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: /path/to/project/.venv/lib/python3.11/site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by:
Operating system:
ArchLinux
Additional environment details:
- GNOME: 1:44.3-1
- both Wayland and X11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the provided Python reproducer on ArchLinux under both Wayland and X11, with window_title_bar_hidden enabled and the stated minimum dimensions. Trace the desktop window-sizing entry point used by this configuration, including the async runtime path. Done means frameless windows cannot be resized below the configured minimum width and height in both runtime modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100