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:
parent
72095c2fc6
commit
814e43999b
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 739d308498ab68df3e37772265733c81b27f2cc2
|
||||
Subproject commit 5609fecbcee6d0608ea28985c31688511e735a59
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user