1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Math.round getBoundingClientRect values. resolves #792

This commit is contained in:
Kyle Spearrin
2018-12-03 11:16:26 -05:00
parent 72095c2fc6
commit 814e43999b
3 changed files with 5 additions and 5 deletions

2
jslib

Submodule jslib updated: 739d308498...5609fecbce

View File

@@ -56,8 +56,8 @@ export class PopOutComponent implements OnInit {
chrome.windows.create({ chrome.windows.create({
url: href, url: href,
type: 'popup', type: 'popup',
width: bodyRect.width ? bodyRect.width + 60 : 375, width: Math.round(bodyRect.width ? bodyRect.width + 60 : 375),
height: bodyRect.height || 600, height: Math.round(bodyRect.height || 600),
}); });
if (this.popupUtilsService.inPopup(window)) { if (this.popupUtilsService.inPopup(window)) {

View File

@@ -21,8 +21,8 @@ function init() {
chrome.windows.create({ chrome.windows.create({
url: 'popup/index.html?uilocation=popout', url: 'popup/index.html?uilocation=popout',
type: 'popup', type: 'popup',
width: bodyRect.width + 60, width: Math.round(bodyRect.width + 60),
height: bodyRect.height, height: Math.round(bodyRect.height),
}); });
BrowserApi.closePopup(window); BrowserApi.closePopup(window);
return; return;