Note that there are some explanatory texts on larger screens.

plurals
  1. POBody won't scroll when dynamic content added
    primarykey
    data
    text
    <p>Live link here: <a href="http://tbremer.com/" rel="nofollow">http://tbremer.com/</a></p> <p>Try Architecture or Concert to see problem</p> <p>My issue is that when my images are added the viewport doesn't scroll or extend to allow for the new content.</p> <p>I need to understand what the root issue is here and hopefully find a work around.</p> <p>Thanks!</p> <p>OK, sorry here is the pertinent code.</p> <p><strong>CSS:</strong></p> <pre><code>/* Content Wrapper */ #contentWrapper { padding: 0px; margin: 0px; width: 100%; height: 99%; z-index: 0; border: 0px solid #600; } /* Image Viewer */ #imageViewer{ position: fixed; left: 0px; top: 0px; padding: 0px; padding-left: 350px; margin: 0px; border: 0px solid #F0F; visibility: hidden; } .portImage { padding: 0; margin: 4px; border: 1px solid #000; display: inline; } </code></pre> <p><strong>HTML:</strong></p> <pre><code>&lt;div id="contentWrapper"&gt; &lt;div id="imageViewer"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>JAVASCRIPT:</strong></p> <pre><code>xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200) { $("#imageViewer").empty(); $("#imageViewer").css("visibility", "hidden"); //___ Get server response. var responseArray = xmlhttp.responseText.split(','); responseArray.pop(); //console.log(responseArray.length); //console.log(responseArray); for(var i=0;i&lt;responseArray.length;i++){ $("#imageViewer").append("\ &lt;div id='portImage"+i+"' class='portImage'&gt;\ &lt;img src='"+responseArray[i]+"' height='500'&gt;\ &lt;/div&gt;\ "); } $(".portImage").each(function() { var image = $("&lt;img /&gt;").attr('src', this); }); //$("#imageViewer").append("Test"); $("#imageViewer").css("visibility", "visible"); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload