hacdias/electron-menubar

Odd Placement on macOS if menubar is set to hide

Opened this issue · 2 comments

This module cleans up code from https://github.com/maxogden/menubar and https://github.com/pixtron/electron-traywindow-positioner

of note, menubar uses https://github.com/jenslind/electron-positioner rather than electron-traywindow-positioner, and that dep has been updated more recently, perhaps a fix for this issue can be found there.

@olizilla I was digging into past PRs and it seems that I created this module because there were some bugs with the alignment on Linux (ipfs/ipfs-desktop#563).

For what I read, the Tray.getBounds() only works on Windows and macOS and jenslind/electron-positioner doesn't take that into account, hence not working on Linux as expected. That's why I ended up reusing the code from electron-traywindow-positioner. Although I will take a look at the first's code to see what they do. Maybe they don't have this issue