Chartjs-Is there a way to customize the number of pages being printed on JavaScript / React?

0šŸ‘

I investigated this issue further.
The v108 Google Chrome update brought issues on Print Preview for many users.

There is a workaround that involves applying this CSS:

  .chartjs-size-monitor-expand > div {
    position: fixed !important; // cannot stay ā€œabsoluteā€
  }

  chartjs-size-monitor,
  .chartjs-size-monitor-shrink,
  .chartjs-size-monitor-expand,
  .chartjs-size-monitor-expand > div {
    position: fixed !important; // cannot stay ā€œabsoluteā€
  }

Source: Hundreds of blank pages and/or disproportion when printing a web page, after chrome version ~103 release (solved)

This fixed my issue! Hope it can help anyone who needs it.

Leave a comment