jquery-match-height icon indicating copy to clipboard operation
jquery-match-height copied to clipboard

Chrome print preview with no page reload.

Open LeahyCC opened this issue 8 years ago • 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!

LeahyCC avatar Jun 06 '17 17:06 LeahyCC

Have you found any workaround for this yet? I'm running into an issue with this.

keithernet avatar Dec 05 '17 15:12 keithernet

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.

LeahyCC avatar Dec 29 '17 16:12 LeahyCC

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 avatar Jan 11 '18 14:01 liabru

@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.

LeahyCC avatar Mar 29 '18 05:03 LeahyCC