Skip to content

Commit

Permalink
fix print view visual regression in Chrome >=108
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Dec 29, 2022
1 parent cca0e39 commit 3678b02
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export const useGridPrintExport = (
// Allow to overflow to not hide the border of the last row
const gridMain: HTMLElement | null = gridClone.querySelector(`.${gridClasses.main}`);
gridMain!.style.overflow = 'visible';
// See https://support.google.com/chrome/thread/191619088?hl=en&msgid=193009642
gridMain!.style.contain = 'size';

const columnHeaders = gridClone.querySelector(`.${gridClasses.columnHeaders}`);
const columnHeadersInner = columnHeaders!.querySelector<HTMLElement>(
Expand Down

0 comments on commit 3678b02

Please sign in to comment.