You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
26.6.10
What operating system are you using?
macOS
Operating System Version
macOS Sonoma 14.4.1
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
if win.setAlwaysOnTop(true, 'screen-saver'), then win.setPosition / win.setBounds can position the window overlap the menubar without entering fullscreen mode
Actual Behavior
win.setPosition(0, 0) / win.setBounds({ x: 0, y: 0 }) cannot position the window overlap the menubar ( y is reset to the menubar's height), even if win.setAlwaysOnTop(true, 'screen-saver')
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Unfortunately, the behavior you're observing is due to the way macOS handles window positioning. When you manually drag a window, macOS allows you to position it in a way that partially obscures the menu bar as long as it has a window level that enables that. However, programmatically setting a window's position respects the boundaries of the screen, excluding the menu bar. There's not really anything we can do about this.
Preflight Checklist
Electron Version
26.6.10
What operating system are you using?
macOS
Operating System Version
macOS Sonoma 14.4.1
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
if win.setAlwaysOnTop(true, 'screen-saver'), then win.setPosition / win.setBounds can position the window overlap the menubar without entering fullscreen mode
Actual Behavior
win.setPosition(0, 0) / win.setBounds({ x: 0, y: 0 })
cannot position the window overlap the menubar ( y is reset to the menubar's height), even ifwin.setAlwaysOnTop(true, 'screen-saver')
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: