<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to set module div for fullscreen]]></title><description><![CDATA[<p dir="auto">I am trying to fix MMM-ImagePhotos and MMM-Slideshow to not truncate portrait images or zoom in some landscape images…</p>
<p dir="auto">i have them almost completely fixed, except a small section of the screen at the bottom starting in the middle of the rss feed output and below…<br />
<a href="https://www.dropbox.com/s/jnudtn8wpef4ba5/IMG_20180925_125325.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/jnudtn8wpef4ba5/IMG_20180925_125325.jpg?dl=0</a></p>
<p dir="auto"><a href="https://www.dropbox.com/s/gt1nxxwxkymgyic/IMG_20180925_125340.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/gt1nxxwxkymgyic/IMG_20180925_125340.jpg?dl=0</a><br />
the updated code does</p>
<pre><code>                // create the div for this module
		var wrapper = document.createElement("div");
                       // set its size to the full display area
			wrapper.style.width  = document.body.clientWidth;
			wrapper.style.height = document.body.clientHeight;
                        // set the div position
			wrapper.style.left = 0;
		        wrapper.style.top = document.body.clientHeight;
                        // make position relative
			wrapper.style.position = "relative";
                       // set a background color to improve the looks
			wrapper.style.backgroundColor = self.config.backgroundColor;
			// turn off any border
			wrapper.style.border = "none";
                        // use users opacity setting
			wrapper.style.opacity = self.config.opacity;
</code></pre>
<p dir="auto">if I use position=“absolute” for the div it looks like this</p>
<p dir="auto"><a href="https://www.dropbox.com/s/k0i4hror1rx9tp5/IMG_20180925_125427.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/k0i4hror1rx9tp5/IMG_20180925_125427.jpg?dl=0</a></p>
<p dir="auto">how can I get rid of the bottom bar?</p>
<p dir="auto">it looks worse on a different tv (both devices are TVs, not monitors)<br />
<a href="https://www.dropbox.com/s/shly9zuo8hhb3bn/IMG_20180925_125243.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/shly9zuo8hhb3bn/IMG_20180925_125243.jpg?dl=0</a></p>
<p dir="auto">why don’t my pics show when I use the Picture info wrapper?</p>
]]></description><link>https://forum.magicmirror.builders/topic/8807/how-to-set-module-div-for-fullscreen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 00:34:41 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8807.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Sep 2018 17:57:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to set module div for fullscreen on Sat, 13 Oct 2018 17:02:06 GMT]]></title><description><![CDATA[<p dir="auto">Using the fullscreens.above class for the div makes this a lot easier. No modification of the std css  is required</p>
]]></description><link>https://forum.magicmirror.builders/post/45369</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45369</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 13 Oct 2018 17:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to how to set module div for fullscreen on Thu, 27 Sep 2018 13:48:54 GMT]]></title><description><![CDATA[<p dir="auto">here is another way.</p>
<pre><code>window.getComputedStyle(document.body).getPropertyValue('margin-top');
</code></pre>
<p dir="auto">now… i forgot that I had a custom.css to eliminate the margins.</p>
<p dir="auto">but the fullscreen style still has the -60 adjustments for the default border</p>
]]></description><link>https://forum.magicmirror.builders/post/44799</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44799</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 27 Sep 2018 13:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to how to set module div for fullscreen on Wed, 26 Sep 2018 20:16:07 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 thanks… sadly this re-introduces the margins in both dimensions</p>
]]></description><link>https://forum.magicmirror.builders/post/44787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44787</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Sep 2018 20:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to how to set module div for fullscreen on Wed, 26 Sep 2018 19:36:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> there are units called view width and view height, try those</p>
<p dir="auto"><code>100vw</code> and <code>100vh</code></p>
]]></description><link>https://forum.magicmirror.builders/post/44785</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44785</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Wed, 26 Sep 2018 19:36:28 GMT</pubDate></item><item><title><![CDATA[Reply to how to set module div for fullscreen on Wed, 26 Sep 2018 17:45:45 GMT]]></title><description><![CDATA[<p dir="auto">so close…</p>
<p dir="auto">client Height/Width is the screen, but the body has height/width reduced by margins…</p>
<p dir="auto">how can I get the size of the margin in javascript to do the corrections programatically?</p>
]]></description><link>https://forum.magicmirror.builders/post/44777</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44777</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Sep 2018 17:45:45 GMT</pubDate></item></channel></rss>