title: Redraw/Resize highcharts when printing website
body: <p>When I'm printing the bottom right frame the text <code>some text</code> is partly covered by the highcharts because they don't resize before printing. Is there a solution to configure a printing layout with <code>@media print</code> for the website and force highcharts to redraw/resize to container size when website is printed?</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;script src="http://code.highcharts.com/highcharts.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.highcharts.com/modules/exporting.js"&gt;&lt;/script&gt;
  
  &lt;div id="container" style="height: 400px"&gt;&lt;/div&gt;
  &lt;div id="container" style="height: 400px"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>$(function () {
      Highcharts.setOptions({ // Apply to all charts
          chart: {
              events: {
                  beforePrint: function () {
                      this.oldhasUserSize = this.hasUserSize;
                      this.resetParams = [this.chartWidth, this.chartHeight, false];
                      this.setSize(600, 400, false);
                  },
                  afterPrint: function () {
                      this.setSize.apply(this, this.resetParams);
                      this.hasUserSize = this.oldhasUserSize;
                  }
              }
          }
      });
  
      $('#container').highcharts({
  
          title: {
              text: 'Rescale to print'
          },
  
          subtitle: {
              text: 'Click the context menu and choose "Print chart".&lt;br&gt;The chart size is set to 600x400 and restored after print.'
          },
  
          xAxis: {
              categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                  'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
          },
  
          series: [{
              data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
          }]
  
      });
  
  });
  </code></pre>
  
  <p><a href="https://jsfiddle.net/kscvce93/" rel="noreferrer">JSFiddle</a></p>