Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Larger tables are truncated in print mode #16856

Closed
Mati365 opened this issue Aug 5, 2024 · 0 comments · Fixed by #16855
Closed

Larger tables are truncated in print mode #16856

Mati365 opened this issue Aug 5, 2024 · 0 comments · Fixed by #16855
Labels
type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Mati365
Copy link
Member

Mati365 commented Aug 5, 2024

📝 Provide detailed reproduction steps (if any)

  1. Put large table in the document or use setData [1]
  2. Ensure that pagination plugin is not present
  3. Try to print or export document

Directly related to https://github.com/cksource/ckeditor5-commercial/issues/6507
Caused by #6186

[1]

window.editor.setData('<figure class="table"><table><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>Test</td><td>asdasdasd</td></tr><tr><td>asd</td><td>asd</td></tr></tbody></table></figure>')

✔️ Expected result

Table is not being truncated.

obraz

❌ Actual result

Table is truncated.

obraz

❓ Possible solution

It looks like height: 100% style that is set to table breaks printing mode.

📃 Other details

  • Browser: Chrome
  • OS: Linux
@Mati365 Mati365 added the type:bug This issue reports a buggy (incorrect) behavior. label Aug 5, 2024
@Mati365 Mati365 closed this as completed in c0a2a8c Aug 7, 2024
@CKEditorBot CKEditorBot added this to the iteration 77 milestone Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants