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:
2
jslib
2
jslib
Submodule jslib updated: 739d308498...5609fecbce
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user