Comments (6)
This has been fixed in the latest version of electron.
tray.getBounds()
has been added.
mb.on('ready', function ready () {
mb.showWindow(mb.tray.getBounds())
})
from menubar.
No, currently there is no way to get the tray icon position without clicking the icon. So we have to default it to top-right when the tray position is missing.
from menubar.
@jenslind, in an OS project like this, would it be my responsibility to close this issue now?
from menubar.
@nickbytes I think it's the responsibility of whoever remembers first :P
from menubar.
Reopened because electron/electron#2469 is still open, if that gets implemented this can be supported
from menubar.
Also added tray.getBounds
to showWindow
method, so you don't have to pass the bounds yourself.
from menubar.
Related Issues (20)
- Cannot integrate node in the menubar BrowserWindow HOT 2
- Remote url is getting cached
- Hide from cmd + tab menu HOT 1
- Taskbar with auto-hide on gets overlaid by menubar
- Add support to work with Electron 21 HOT 2
- Question: Site Context Menus HOT 1
- Menubar showing empty white screen with no content, but shows content on the desktop app and the website. HOT 1
- hello-world project cannot run on M1 mac
- Electron Forge x React with Menubar HOT 1
- Incorrect position on multiple monitor HOT 1
- Menubar window is incorrectly positioned when opened while the tray icon is hidden on Windows HOT 1
- Electron menubar not loading file in Production - but working properly in development HOT 4
- Doesn't work in the latest version of electron (v.26) HOT 1
- Cant find window.require with reactjs HOT 1
- Setting an icon makes the app disappear
- The IconTemplate.png overrides my icons when I package my app HOT 2
- Small bug on macos menubar
- add electron 28.x and 29.x support
- Main window's menu disappear when have menubar window HOT 1
- bug(macOS): inconsistent space when using mission control spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from menubar.