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

feat: allow partial setting of window bounds #15677

Merged
merged 3 commits into from Nov 12, 2018

Artifact Comparison

Neutral

ran Nov 12, 2018 in less than a minute

0bab770 by @nornagon

Changes Detected

Looks like the electron.d.ts file changed.

Index: electron.d.ts
===================================================================
--- electron.d.ts	
+++ electron.d.ts	
@@ -1703,9 +1703,10 @@
      * Sets the background color of the window. See Setting backgroundColor.
      */
     setBackgroundColor(backgroundColor: string): void;
     /**
-     * Resizes and moves the window to the supplied bounds
+     * Resizes and moves the window to the supplied bounds. Any properties that are not
+     * supplied will default to their current values.
      */
     setBounds(bounds: Rectangle, animate?: boolean): void;
     setBrowserView(browserView: BrowserView): void;
     /**
You can’t perform that action at this time.