Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide titlebar? #18

Open
MetaCubeX opened this issue Nov 24, 2021 · 3 comments
Open

How to hide titlebar? #18

MetaCubeX opened this issue Nov 24, 2021 · 3 comments
Labels
question Further information is requested

Comments

@MetaCubeX
Copy link

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 ...

@jchv
Copy link
Owner

jchv commented Nov 24, 2021

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 jchv added the question Further information is requested label Nov 24, 2021
@MetaCubeX
Copy link
Author

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?

@leaanthony
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants