fix popup height

This commit is contained in:
Emin Deniz 2021-02-22 03:01:31 +03:00
parent 2ac9f92267
commit 1cb77f847e
1 changed files with 8 additions and 4 deletions

View File

@ -79,10 +79,14 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
return async () => {
if (!popupUtilsService.inPopup(window)) {
window.document.body.classList.add('body-full');
} else if (window.screen.availHeight < 600) {
window.document.body.classList.add('body-xs');
} else if (window.screen.availHeight <= 800) {
window.document.body.classList.add('body-sm');
} else {
if (window.screen.availHeight < 600) {
window.document.body.classList.add('body-xs');
} else if (window.screen.availHeight <= 800) {
window.document.body.classList.add('body-sm');
}
document.body.style.setProperty('height',`${window.innerHeight}px`,'important');
}
if (BrowserApi.getBackgroundPage() != null) {