wailsapp / wails

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

Window resize using wails dev #2357

Closed freehelpdesk closed 1 year ago

freehelpdesk commented 1 year ago

Description

During testing, wails dev does not provide functionality for resizing the window like it does while compiling while running in frameless mode.

Drag does not work as well when running the app though wails dev

To Reproduce

Frameless: true wails dev

Expected behaviour

The window to be resized and resize events to be handled like it does in the full build of the application

Screenshots

image image

Attempted Fixes

Tried modifying the source to allow this on the devserver. Did not succeed.

System Details

DEB | Using go webview2loader
Wails CLI v2.3.1

Scanning system - Please wait (this may take a long time)...Done.

# System

OS           | Windows 10 Pro     
Version      | 2009 (Build: 22621)
ID           | 22H2               
Go Version   | go1.19.4           
Platform     | windows
Architecture | amd64

# Wails

Version | v2.3.1

# Dependencies

Dependency | Package Name | Status    | Version
WebView2   | N/A          | Installed | 109.0.1518.78
npm        | N/A          | Installed | 9.3.1
*upx       | N/A          | Available |
*nsis      | N/A          | Available |
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

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

Additional context

No response

stffabi commented 1 year ago

Thanks for using Wails and reporting this.

Seems like a recently regression, because I'm certain dragging worked for the intial v2 release.

Will try to test it soon.

freehelpdesk commented 1 year ago

Appreciate your timely response!

stffabi commented 1 year ago

I've just tried that with a clean new project wails init -n myproject -t svelte with wails v2.3.1. Resizing and also dragging worked as expected during wails dev with a frameless window.

Could you please provide us with a minimal reproduction guide? Can you reproduce it with a clean new wails project?

freehelpdesk commented 1 year ago

I can confirm that it works with a fresh project, This is so strange, let me contact out frontend team, seems to be an issue with our cross platform Vue code.

freehelpdesk commented 1 year ago

One thing, out project uses quasar, that would be the only difference i can come up with.

stffabi commented 1 year ago

It seems like the wrong IPC is used, when using wails dev it should use the in-process IPC when shown in the app. But from your error message it seems like the websocket IPC is used like when using the browser for accessing the devserver.

Is the IPC probably added manually?

freehelpdesk commented 1 year ago

I have no clue, I'm the Go backend developer and have very little knowledge about JS and javascript frameworks.

stffabi commented 1 year ago

@freehelpdesk were you able to solve this with your frontend team?

stffabi commented 1 year ago

I think we could close this issue, because it seems not be a general resize problem. @freehelpdesk please feel free to reopen it if you need any further help or have question how to track it down.