fix resize messaging (#3606)

changelog.md
This commit is contained in:
Atterpac 2024-07-13 23:47:18 -07:00 committed by GitHub
commit 62b795d472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed resize event messaging by [atterpac](https://github.com/atterpac) in [#3606](https://github.com/wailsapp/wails/pull/3606)
- [linux] Fixed theme handling error on NixOS by [tmclane](https://github.com/tmclane) in [#3515)(https://github.com/wailsapp/wails/pull/3515)
- Fixed cross volume project install for windows by [atterpac](https://github.com/atterac) in [#3512](https://github.com/wailsapp/wails/pull/3512)
- Fixed react template css to show footer by [atterpac](https://github.com/atterpac) in [#3477](https://github.com/wailsapp/wails/pull/3477)

View file

@ -659,11 +659,11 @@ func (w *WebviewWindow) HandleMessage(message string) {
case strings.HasPrefix(message, "wails:resize:"):
if !w.IsFullscreen() {
sl := strings.Split(message, ":")
if len(sl) != 2 {
w.Error("Unknown message returned from dispatcher: %+v", message)
if len(sl) != 3 {
w.Error("Unknown message returned from dispatcher", "message", message)
return
}
err := w.startResize(sl[1])
err := w.startResize(sl[2])
if err != nil {
w.Error(err.Error())
}