title: window.print() doesn't print entire page
body: <p>i'm trying to print a newly opened window by using <code>window.print()</code>.</p>
  
  <p>My problem is, that only the <em>start</em> part of the page is being printed (only what you see when you are scrolled to top-left of the window).</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var printWindow = window.open("", "Print", "width=" + nWidth + "px, height=" + nHeight+ "px");
  printWindow.document.write(sSvgData, sDivData);
  printWindow.document.close();
  printWindow.print();
  </code></pre>
  
  <p>Solutions i already tried, but didnt work for me:</p>
  
  <p>1) writing the entire html to document (using <code>window.document.write()</code>) and including my <code>css</code> in header</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;link rel="stylesheet" href="../css/style.css" type="text/css" media="print"/&gt;&lt;/head&gt; 
  &lt;body&gt;...
  
  style.css:
  @media print {
    body, html, div, #wrapper {
        height: 100%;
        width: 100%;
    }
  }
  </code></pre>
  
  <p>2) same as 1) but including the style inline as in:</p>
  
  <pre><code>&lt;html&gt;&lt;style&gt;@media print { body, html, #wrapper { height: 100%; width: 100%;} }&lt;/style&gt;&lt;body&gt;...
  </code></pre>