ELECTRON-1363 - Fix pop up menu position (#709)

This commit is contained in:
Kiran Niranjan
2019-07-09 15:08:15 +05:30
committed by Vishwas Shashidhar
parent 278257c1d1
commit d34de0fff8

View File

@@ -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) {