go-webview2 icon indicating copy to clipboard operation
go-webview2 copied to clipboard

How to hide titlebar?

Open MetaCubeX opened this issue 4 years ago • 3 comments

How to hide titlebar and App can be moved ? i try to hide titlebar with Hwnd, and html set webkit-app-region: drag but it can't move ...

MetaCubeX avatar Nov 24 '21 18:11 MetaCubeX

WebView2 doesn't support webkit-app-region: drag in this way. You can still implement region-based dragging manually, but there is no examples of doing this with go-webview2 right now. Someone has implemented it here using a small bit of JS code. This would need to be ported to use the callback mechanism go-webview2 implements instead of forwarding a COM object.

jchv avatar Nov 24 '21 19:11 jchv

WebView2 doesn't support webkit-app-region: drag in this way. You can still implement region-based dragging manually, but there is no examples of doing this with go-webview2 right now. Someone has implemented it here using a small bit of JS code. This would need to be ported to use the callback mechanism go-webview2 implements instead of forwarding a COM object.


Hi , I'm back again I have tried many methods, it may be that I am not capable enough to solve it. At present, there are two problems that need help.

  1. How to set the window to appear in the center of the screen?
  2. For the taskbar icons generated by default, the pixels are missing. What should I do to make the icons display perfectly?

MetaCubeX avatar Dec 07 '21 11:12 MetaCubeX

We solve a number of these issues in Wails. Feel free to browse the code.

leaanthony avatar Dec 26 '21 08:12 leaanthony