hidden
hidden copied to clipboard
Expand causes gap size to change on Monterey
Describe the bug
Expand cause gap size to change. I think this may be due to the Monterey bug or Macbook Pro with notch, I'm not sure.
Steps to reproduce
Without Hidden
Before expand
After expand
Expected behaviour
The gap size will be maintained. If it's Monterey or Macbook Notch bug, then maybe good to consider enhancement to hide the overflow of the Menu Bar.
Environment
- OS: Monterey
It is definitely caused by the notch. I could only reproduce this on a MacBook Pro 2021 internal display and not on an external display.
I experimented a bit with this.. it seems like macOS automatically spreads out the menu bar icons evenly once they get close to the notch. This behaviour also occurs when Hidden Bar is not running.
In the following screenshot the menu bar still has some space left towards the notch, so the icons have normal spacing:
Here I added the battery percentage to make the menu bar a bit wider, now a gap gets added between the icons:
I don't think there is a simple solution for this. The only way I can imagine this could be solved is by calculating the available space of the menu bar, then calculate the actual current width of the menu bar (if that's even possible), then subtract both values and then add an invisible icon to the left of the menu bar with that calculated width. This way macOS would assume all the menu bar icons use up exactly the available space and wouldn't apply any extra spacing.
Looks like Apple fixed it in 12.3! 🎉
Nice! Now I can finally re-add all the icons I removed 😅