mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-1363 - Fix pop up menu position (#709)
This commit is contained in:
committed by
Vishwas Shashidhar
parent
278257c1d1
commit
d34de0fff8
@@ -251,7 +251,7 @@ export const updateLocale = (locale: LocaleType): void => {
|
||||
export const showPopupMenu = (opts: Electron.PopupOptions): void => {
|
||||
const mainWindow = windowHandler.getMainWindow();
|
||||
if (mainWindow && !mainWindow.isDestroyed() && isValidWindow(mainWindow)) {
|
||||
const { x, y } = mainWindow.isFullScreen() ? { x: 0, y: 0 } : { x: 10, y: -20 };
|
||||
const { x, y } = mainWindow.isFullScreen() ? { x: 0, y: 0 } : { x: 20, y: 15 };
|
||||
const popupOpts = { window: mainWindow, x, y };
|
||||
const appMenu = windowHandler.appMenu;
|
||||
if (appMenu) {
|
||||
|
||||
Reference in New Issue
Block a user