1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-18 11:05:41 +01: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

@ -1 +1 @@
Subproject commit 739d308498ab68df3e37772265733c81b27f2cc2
Subproject commit 5609fecbcee6d0608ea28985c31688511e735a59

View File

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

View File

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