A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
how to set module div for fullscreen
-
so close…
client Height/Width is the screen, but the body has height/width reduced by margins…
how can I get the size of the margin in javascript to do the corrections programatically?
-
@sdetweil there are units called view width and view height, try those
100vw
and100vh
-
@strawberry-3-141 thanks… sadly this re-introduces the margins in both dimensions
-
here is another way.
window.getComputedStyle(document.body).getPropertyValue('margin-top');
now… i forgot that I had a custom.css to eliminate the margins.
but the fullscreen style still has the -60 adjustments for the default border
-
Using the fullscreens.above class for the div makes this a lot easier. No modification of the std css is required