Skip to content

[window-state] On Windows 11, sub windows open smaller and smaller and smaller, violating our set minimum window dimensions.  #2326

@abarrafo

Description

@abarrafo

This does not happen on MacOS, and, was not occurring on an earlier build, so it might have been introduced in recent updates.

rust: 1.84
tauri: 2.2.2
tauri-plugins: 2.2.0

I have key bindings for ctrl + shift + f to open a global project search sub window, a new window with a parent. Every time I open it, it shrinks, and shrinks.

I have the following attributes:

            .inner_size(600.0, 400.0)
            .min_inner_size(600.0, 400.0)

The window is starting out below this minimum threshold, and gets worse. It does snap back up to the min as soon as I grab a corner to perform a resize event.

When I remove the plugin from lib.rs, the problem demonstrated below, stops.

Opening additional windows, not marked with a parent appears to be unaffected.

Screen.Recording.2025-01-16.102144.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions