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

Any way to programmatically size the devToolsWebContents window? #6953

Closed
koush opened this issue Aug 24, 2016 · 1 comment
Closed

Any way to programmatically size the devToolsWebContents window? #6953

koush opened this issue Aug 24, 2016 · 1 comment

Comments

@koush
Copy link

koush commented Aug 24, 2016

  • Electron version:
    1.3.3
  • Operating system:
    OSX El Capitan

This works on normal Browser Windows:

bw.webContents.executeJavaScript('window.resizeTo(1000, 1000)')

This does not work on a detached devtools webcontents for that same browser window:

bg.webContents.devToolsWebContents.executeJavaScript('window.resizeTo(1000, 1000)')

Is there any way to programmatically size the devtools window that opens? Whenever they open for me, they are tiny windows in the bottom left of my monitor screen:

snapsink-53

@zcbenz
Copy link
Member

zcbenz commented Aug 24, 2016

Currently the devtools window is not manageable with JavaScript, I'm merging this to #2835, which would allow controlling devtools window directly with Electron API.

@zcbenz zcbenz closed this as completed Aug 24, 2016
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