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

don't work frameless and border-radius #7256

Closed
marrokin opened this issue Dec 4, 2019 · 4 comments
Closed

don't work frameless and border-radius #7256

marrokin opened this issue Dec 4, 2019 · 4 comments

Comments

@marrokin
Copy link

marrokin commented Dec 4, 2019

image

NWJS Version: 0.42.6
Operating System: Windows 10 1903

Rounded corners in the window

I tried to make an application with nwjs with rounded corners but what you see in the image appears, it does not work and a border appears in the window

"js-flags": "--harmony_proxies",
   "window": {
     "width": 960,
     "height": 600,
     "frame": false,
     "toolbar": false,
     "transparent": true,
     "position": "center",
     "icon": "src / assets / icon.png"
   },
   "webkit": {
     "page-cache": true
   },
html,
body {
   font-size: 16px;
   margin: 0;
   display: flex;
   flex-direction: column;
   width: 100vw;
   height: 100vh;
   flex: 1;
   border-radius: 2rem;
   overflow: hidden;
   background: transparent;
   -webkit-app-region: drag;
}

#app {
   flex: 1;
   margin: 0;
   padding: 0;
   background: silver;
}
<html>
  <body>
    <div id="app">
      <span>WINDOWS 10 VER : 1903</span>
      <span>NWJS VERSION : 0.42.6</span>
    </div>
  </body>
</html>
@rogerwang
Copy link
Member

Does --disable-features=nw2 make any difference there?

@marrokin
Copy link
Author

marrokin commented Dec 4, 2019

Does --disable-features=nw2 make any difference there?

that works! 😄 👍
Thanks!

@marrokin marrokin closed this as completed Dec 4, 2019
@marrokin marrokin reopened this Dec 15, 2019
@rogerwang
Copy link
Member

cc #7230

@rogerwang
Copy link
Member

close as duplicate of #7221

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

No branches or pull requests

2 participants