Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Stop Auto Hide Menu Bar (Electron on Mac)

How can you make sure that the menu bar stays active when a BrowserWindow in Electron is visible?

Case Explanation: Once you click on my Tray icon, a BrowserWindow is opened with some HTML. Once the cursor moves down from the Mac menu bar, the menu bar is hidden, but the BrowserWindow is still visible.

Desired Case: Ideally, the Mac menu bar remains visible until the BrowserWindow is de-focused and hidden.

Here is an image of how the problem looks:

enter image description here

Interestingly, when I create a context menu instead of having a custom BrowserWindow...

const contextMenu = Menu.buildFromTemplate([
    { label: 'Item1', type: 'radio' },
    { label: 'Item2', type: 'radio' },
    { label: 'Item3', type: 'radio', checked: true },
    { label: 'Item4', type: 'radio' }
])

tray.setContextMenu(contextMenu)

... the Mac menu bar remains. See this image:

enter image description here

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!