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({
|
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)) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user