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]: Window overlay controls ignores maximizable and minimizable properties #31352

Closed
3 tasks done
lee011 opened this issue Oct 8, 2021 · 7 comments
Closed
3 tasks done

Comments

@lee011
Copy link

lee011 commented Oct 8, 2021

Preflight Checklist

Electron Version

15.1.0

What operating system are you using?

Windows

Operating System Version

Windows 11 22000.194

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When a BrowserWindow is initialized with the following properties:

{
    titleBarStyle: "hidden",
    maximizable: false,
    minimizable: false,
    titleBarOverlay: true,
}

The window's controls overlay should disable (or not display) the maximize and minimize buttons.

Actual Behavior

The window still displays the maximize and minimize buttons, and the window can still be maximized or minimized using these buttons when maximizable and minimizable are set to false.

Testcase Gist URL

https://gist.github.com/lee011/3e392cd3e936b0791a2e6b991a8c5434

Additional Information

No response

@theolivenbaum
Copy link

Also wanted to add, the maximize button seems to be doing nothing for me. Minimize and close works.
Tested on both Win10 and Win11, window options on creation set to: { transparent:true, frame:true, titleBarStatus: 'hidden', maximizable: true,resizable:true, titleBarOverlay: true }

@limacheb
Copy link

I can confirm this bug also for Electron 16.
Are there any plans for delivering a fix?

@SquitchYT
Copy link

I have the same bug when setting window as transparent. But in my case, i don't set maximizable and minimizable as false

@gpetrov
Copy link

gpetrov commented May 20, 2022

Still happening in Electron 18, very annoying bug, we just can't disable/hide the minimize or maximize buttons. This makes the WCO integration a bit useless.

@clavin any ideas?

@panther7
Copy link

Is maximizable and minimizable somewhere are documented?

@limacheb
Copy link

Still happening in Electron 19.
This makes the WCO unusable for us.
I would appreciate a statement from the electron team in respect to the timeline by when this could be fixed.

@codebytere
Copy link
Member

Fixed in #34677

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

8 participants