Skip to content

wails v3 Unable to restrict the minimum width and height of the window. #4593

@wufran887

Description

@wufran887

Description

In Vue, using ToggleMaximise to control window maximization or minimization causes abnormal behavior in width and height restrictions.

To Reproduce

In Vue, using ToggleMaximise to control window maximization or minimization causes abnormal behavior in width and height restrictions.

Expected behaviour

In Vue, using ToggleMaximise to control window maximization or minimization causes abnormal behavior in width and height restrictions.

Screenshots

No response

Attempted Fixes

No response

System Details

Wails (v3.0.0-alpha.27
)  Wails Doctor

# System

┌────────────────────────────────────────────────────────────────────────────────────────────┐
| Name              | Windows 10 Home                                                        |
| Version           | 2009 (Build: 26100)                                                    |
| ID                | 24H2                                                                   |
| Branding          | Windows 11 家庭版                                                      |
| Platform          | windows                                                                |
| Architecture      | amd64                                                                  |
| Go WebView2Loader | true                                                                   |
| WebView2 Version  | 140.0.3485.81                                                          |
| CPU               | 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz                         |
| GPU 1             | Intel(R) UHD Graphics (Intel Corporation) - Driver: 30.0.101.2079      |
| GPU 2             | NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA) - Driver: 30.0.15.1165  |
| Memory            | 16GB                                                                   |
└────────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment

┌────────────────────────────────┐
| Wails CLI    | v3.0.0-alpha.27 |
| Go Version   | go1.24.3        |
| -buildmode   | exe             |
| -compiler    | gc              |
| CGO_CFLAGS   |                 |
| CGO_CPPFLAGS |                 |
| CGO_CXXFLAGS |                 |
| CGO_ENABLED  | 1               |
| CGO_LDFLAGS  |                 |
| GOAMD64      | v1              |
| GOARCH       | amd64           |
| GOOS         | windows         |
└────────────────────────────────┘

# Dependencies

┌────────────────────────────────────────────┐
| npm                        | 10.8.3        |
| NSIS                       | v3.11         |
| MakeAppx.exe (Windows SDK) | Not Installed |
| MSIX Packaging Tool        | Not Installed |
| SignTool.exe (Windows SDK) | Not Installed |
|                                            |
└───────── * - Optional Dependency ──────────┘

# Checking for issues

 SUCCESS  No issues found

# Diagnosis

 SUCCESS  Your system is ready for Wails development!

Need documentation? Run: wails3 docs
 ♥   If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingP2Medium priorityWindowsv3

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions