Boscop / Boscop/web-view

Frameless Mode has some minor problems.

Open
#154 25 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
179
PR merge metrics
No merged PRs in 30d

Description

Thanks for adding frameless mode. It is what I need in order to use my own custom title bar. Unfortunately for that use case the window should also be resizeable. I tested some configurations on Windows 10 and only found the **EDGE (non-resizable)** version to provide the expected result. I used the following code for testing:
```
use web_view::*;

fn main() {
web_view::builder()
.content(Content::Html(HTML))
.size(150, 150)
.frameless(true)
.debug(true)
.resizable(false)
.user_data("")
.invoke_handler(|webview, arg| {
match arg {
"exit" => webview.exit(),
_ => (),
}
Ok(())
})
.run()
.unwrap();
}

const HTML: &str = r#"


exit

"#;
```

These are the results:
![bug_report](https://user-images.githubusercontent.com/17967303/76700430-aaded500-66b7-11ea-96da-52c578b040dd.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.