title: jQuery window width sometimes return wrong value
body: <p>SOMETIMES when I call:</p>
  
  <pre><code>$(window).width();
  </code></pre>
  
  <p>the value returned is wrong (on all browsers except IE, on IE it is always correct). I use the line: </p>
  
  <pre><code>$('div.container p').text($(window).width());
  </code></pre>
  
  <p>to change the text of the <code>p</code> element so I could see what value was returned when I am resizing the window. Here is an example when the value returned is wrong: 
  <img src="https://i.imgur.com/tt4yh6H.png" alt="http://prntscr.com/7biu4y"></p>
  
  <p>In the top right corner, you can see what the actual dimensions are on Chrome.</p>
  
  <p>I noticed that WHEN the value is wrong, it is always off by 17px.</p>
  
  <p>NOTE that the value returned is NOT always wrong so most of the times the window looks as it should.</p>
  
  <p>Help!</p>