Skip to content

Commit

Permalink
Merge pull request #16855 from ckeditor/ck/6507
Browse files Browse the repository at this point in the history
Fix (table): Larger tables are no longer truncated in print mode. Closes #16856
  • Loading branch information
Mati365 authored Aug 7, 2024
2 parents 488ec40 + fa0826e commit c0a2a8c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/ckeditor5-table/theme/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@
}
}

/**
* Expanding the table to the full height of the parent container is necessary because tables
* are rendered inside <figure> elements, which is kinda buggy in table height calculation.
* While setting `height: 100%` fixes the issue in the editing mode described here:
* https://github.com/ckeditor/ckeditor5/issues/6186
*
* it's causing another issue with the table height in the print preview mode here:
* https://github.com/ckeditor/ckeditor5/issues/16856
*
* For now, resetting the height to `initial` in the print mode works as a workaround.
*/
@media print {
.ck-content .table table {
height: initial;
}
}

/* Text alignment of the table header should match the editor settings and override the native browser styling,
when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */
.ck-content[dir="rtl"] .table th {
Expand Down

0 comments on commit c0a2a8c

Please sign in to comment.