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

[Bug]: Setting the BackgroundColor to the BrowserView doesn't work on Windows #30700

Closed
3 tasks done
weifeiyue opened this issue Aug 25, 2021 · 9 comments
Closed
3 tasks done

Comments

@weifeiyue
Copy link

weifeiyue commented Aug 25, 2021

Preflight Checklist

Electron Version

13.2.2

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

ia32

Last Known Working Electron version

No response

Expected Behavior

BackgroundColor to the BrowserView is ok

Actual Behavior

BackgroundColor to the BrowserView is not working

Testcase Gist URL

https://gist.github.com/weifeiyue/3ddde0d19ce942957af6983049fa2764

Additional Information

const { app, BrowserView, BrowserWindow } = require('electron')

app.on('ready', () => {
  const win = new BrowserWindow({ width: 1000, height: 600 })

  const view1 = new BrowserView()
  win.addBrowserView(view1)
  view1.setBackgroundColor('#FFFFFF')
  view1.setBounds({ x: 0, y: 0, width: 800, height: 600 })
  view1.webContents.loadURL('https://electronjs.org')

  const view2 = new BrowserView()
  win.addBrowserView(view2)
  view2.setBackgroundColor('#FFFFFF')
  view2.setBounds({ x: 200, y: 0, width: 800, height: 600 })
  view2.webContents.loadURL('https://design.google/')
})

WX20210826-004703@2x

@weifeiyue weifeiyue changed the title [Bug]: BackgroundColor to the BrowserView doesn't work on Windows [Bug]: Setting the BackgroundColor to the BrowserView doesn't work on Windows Aug 25, 2021
@codebytere
Copy link
Member

@weifeiyue can we please get a proper gist?

@weifeiyue
Copy link
Author

@codebytere ok,i have updated

@codebytere
Copy link
Member

Closed by #30777

@weifeiyue
Copy link
Author

weifeiyue commented Sep 16, 2021

Closed by #30777

This did not fix my problem @codebytere

@weifeiyue
Copy link
Author

@samuelmaddock
can you help me?

@samuelmaddock
Copy link
Member

I'm unable to reproduce this with v13.2.2 on an x64 device, but I haven't been able to test ia32. I'll reopen for now.

@samuelmaddock samuelmaddock reopened this Oct 1, 2021
@weifeiyue
Copy link
Author

@samuelmaddock i have update the demo & gist , you can check it out, it is not ok in x64 or ia32

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Oct 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2022

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants