Snippets & sandbox - usil/eventhos-web GitHub Wiki
fix login heigth
ngAfterViewInits() {
var width = window.innerWidth
|| window.screen.width
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var height = window.screen.height
|| window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
console.log(width)
console.log(height)
var dashboardContainer = document.getElementsByClassName("login-parent-container")[0];
var scaleState = 0.9;
//https://stackoverflow.com/questions/10464038/imitate-browser-zoom-with-javascript
dashboardContainer.setAttribute("style",
`transform: scale(${scaleState});
transform-origin: top left;
width: ${100 * (1 / scaleState)}%;
height: ${100 * (1 / scaleState)}%`);
}
@media only screen and (max-width: 1400px) {
body {
#zoom: 80%;
}
}
.zoom_9 {
transform: scale(.9);
transform-origin: top left;
}