wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
23.25k stars 1.1k forks source link

Maximizing and restoring always display resolution #3557

Closed speauty closed 1 week ago

speauty commented 1 week ago

Description

Maximizing and restoring always display resolution, I'm not quite sure if this is a bug

To Reproduce

WindowIsMaximised().then((isMax: boolean) => { isMax?WindowUnmaximise():WindowMaximise() winIsMax.value = !isMax })

Expected behaviour

no resolution

Screenshots

9a51d86ef45f3399e6570b6a2dac6a1 9a3f5d5b3870849a844f490c720f769

Attempted Fixes

No response

System Details

# Wails
Version | v2.8.0

# System
┌───────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                         |
| Version      | 2009 (Build: 19045)                                                    |
| ID           | 22H2                                                                   |
| Go Version   | go1.21.1                                                               |
| Platform     | windows                                                                |
| Architecture | amd64                                                                  |
| CPU          | Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz                               |
| GPU 1        | NVIDIA GeForce GTX 1650 (NVIDIA) - Driver: 31.0.15.3168                |
| GPU 2        | Intel(R) UHD Graphics 630 (Intel Corporation) - Driver: 27.20.100.9664 |
| Memory       | 32GB                                                                   |
└───────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 126.0.2592.61 |
| Nodejs     | N/A          | Installed | 20.11.1       |
| npm        | N/A          | Installed | 10.5.0        |
| *upx       | N/A          | Installed | upx 3.96      |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

Additional context

No response

speauty commented 1 week ago

DevTools