Chrome print preview with no page reload.
LeahyCC opened this issue · 4 comments
Currently the print functionality for Chrome is to change the layout width (paper size) and not allow for a refresh of the heights of the cells. I've tried some setTimeout delays for a custom print function but nothing seems to be refreshing the page before/during print preview.
Any suggestions would be greatly appreciated!
Have you found any workaround for this yet? I'm running into an issue with this.
I ended up going away with the match height for print, while doing a custom layout on print media via css. Chome's print preview is awful and makes data pages very hard to format.
Also pro tip for print layout.. In Dev tools there's a Print Emulate, Dev Tools > Menu > More Settings > Rendering > Emulate CSS media > Print.
I've not considered usage in print, I guess it would be a nice to have. I do think the best way forward is a custom print stylesheet where possible though.
So does printing not trigger a resize event?
@liabru, It does not trigger a resize.
Chrome beforeprint and afterprint was recently introduced in Chrome 63. Have not tried to trigger an update of all set groups. But I feel there's still going to be the underlining issue of Chrome updating the page (print preview) width after the beforeprint callback.