Skip to content

setResizable prevents setSize from working #238

Description

@sgehrman

I'm on linux, haven't tested others.

    await m.setSize(const Size(222, 111), animate: true);
    await m.setTitleBarStyle(TitleBarStyle.hidden);
    await m.setResizable(false);
    await m.setClosable(false);
    await m.center(animate: true);

That doesn't work unless I set
await m.setResizable(true);

Activity

  1. lijy91 commented on Sep 21, 2026

    @lijy91
    Member

    Closing as a duplicate of #522: on Linux, setResizable(false) makes GTK lock the window to its current or default size, so setSize() no longer has any effect. #522 tracks this, and PR #523 adds setDefaultSize for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions