hidden icon indicating copy to clipboard operation
hidden copied to clipboard

Expand causes gap size to change on Monterey

Open sickerin opened this issue 3 years ago • 4 comments

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 image Before expand image After expand image

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

sickerin avatar Nov 17 '21 11:11 sickerin

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.

kennymc-c avatar Nov 22 '21 00:11 kennymc-c

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: image

Here I added the battery percentage to make the menu bar a bit wider, now a gap gets added between the icons: image

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.

BernieCr avatar Dec 20 '21 12:12 BernieCr

Looks like Apple fixed it in 12.3! 🎉

BernieCr avatar Mar 19 '22 01:03 BernieCr

Nice! Now I can finally re-add all the icons I removed 😅

andreaswilli avatar Mar 19 '22 09:03 andreaswilli