Skip to content

window_min_height doesn't work when window_title_bar_hidden is set #1735

Open
@hyx0329

Description

@hyx0329

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform: linuxSpecific to one or more Linux distributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions