mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
ELECTRON-736 (Show menu at 0,0 cord if the window is in full-screen mode) (#512)
* ELECTRON-736 - Show menu at 0,0 cord if the window is in full screen mode * ELECTRON-736 - Fix unit registry test
This commit is contained in:
parent
e4b28f176d
commit
bae410ebbb
@ -1186,7 +1186,8 @@ function cleanUpChildWindows() {
|
||||
function popupMenu() {
|
||||
const focusedWindow = BrowserWindow.getFocusedWindow();
|
||||
if (mainWindow && !mainWindow.isDestroyed() && isMainWindow(focusedWindow)) {
|
||||
const popupOpts = { browserWin: mainWindow, x: 10, y: -20 };
|
||||
const { x, y } = mainWindow.isFullScreen() ? { x: 0, y: 0 } : { x: 10, y: -20 };
|
||||
const popupOpts = { browserWin: mainWindow, x, y };
|
||||
getMenu().popup(popupOpts);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user