diff options
author | William Monti Souza <william.monti@totvs.com> | 2019-03-18 05:00:51 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-03-18 05:00:51 +0800 |
commit | 98699fbbc077027c83c05560f9d7df29c7fc76e0 (patch) | |
tree | 6fbdcf060d2923f0caf1cda93db1d9157401246e /app | |
parent | ea34d3b0ff2c34c35a11888622938d3a38a41e3a (diff) | |
download | tangerine-wallet-browser-98699fbbc077027c83c05560f9d7df29c7fc76e0.tar.gz tangerine-wallet-browser-98699fbbc077027c83c05560f9d7df29c7fc76e0.tar.zst tangerine-wallet-browser-98699fbbc077027c83c05560f9d7df29c7fc76e0.zip |
Fixes popups not showing when screen size is odd (#6312)
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/notification-manager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/notification-manager.js b/app/scripts/lib/notification-manager.js index 758979973..721d109a1 100644 --- a/app/scripts/lib/notification-manager.js +++ b/app/scripts/lib/notification-manager.js @@ -26,8 +26,8 @@ class NotificationManager { extension.windows.update(popup.id, { focused: true }) } else { const {screenX, screenY, outerWidth, outerHeight} = window - const notificationTop = screenY + (outerHeight / 2) - (NOTIFICATION_HEIGHT / 2) - const notificationLeft = screenX + (outerWidth / 2) - (NOTIFICATION_WIDTH / 2) + const notificationTop = Math.round(screenY + (outerHeight / 2) - (NOTIFICATION_HEIGHT / 2)) + const notificationLeft = Math.round(screenX + (outerWidth / 2) - (NOTIFICATION_WIDTH / 2)) const cb = (currentPopup) => { this._popupId = currentPopup.id } // create new notification popup const creation = extension.windows.create({ |