Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda