Note that there are some explanatory texts on larger screens.

plurals
  1. POOnresize event isn't running on resizing
    primarykey
    data
    text
    <p>I set the javascript window.onresize event to run other functions that fit div's size with the body's size. The problem is that when the screen is resized by adding a comment (using disqus), the divs whose sizes are supposed to fit with the new body's size, don't fit. I mean onresize function isn't being ran.</p> <p><img src="https://i.stack.imgur.com/RBFyt.png" alt="enter image description here"></p> <p>As you can see, the right side div doesn't grow as comments are being added (see the border). Do you have any idea about how make onresize event work?</p> <p>PS: When I open developer tools on firefox, the div is resized, I don't know why, but the onresize event is ran. Only in this situation.</p> <p><strong>Edit:</strong> Tried to run this jquery script:</p> <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script&gt; $(document).resize(function(){ tamanho_barra(); }); &lt;/script&gt; </code></pre> <p>But, isn't working yet. I've tried to change the "document" to a random div and see if something would happen, but nothing. I have no idea about what is the problem. Could you help me please?</p> <p><strong>Edit2</strong>: Working now with rcabral's help. He told me to add a background image to the content which is a black point of 1px and repeat it until the bottom of the page.</p> <pre><code>#content { background:url('&lt;?php bloginfo('template_directory'); ?&gt;/images/gray_dot.gif') 634px 0px repeat-y; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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