-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
When a large amount of data is entered into a 'td' cell within a table, exceeding the length of two pages, the table automatically paginates. This results in a blank content area above the table. #1326
Comments
This could be a table header related issue |
I found that for the time being you can set the display property to simulate the table |
I made a simple test case. https://gist.github.com/MurakamiShinyu/22585fe8c74d2114477117d7d2cd0ff6#file-table-break-1-html Test with Vivliostyle Viewer: I think I can fix it today. |
Hi, Shinyu, how is the progress coming along? |
Hi, I'm still debugging it. It seems the overflow checking has problem when table or table-cell has border and paddings. vivliostyle.js/packages/core/src/vivliostyle/layout.ts Lines 2578 to 2598 in 20fee03
|
I found that the problem does not seem so simple. This problem happens even when the table has no border and padding. I made some simplified test cases. |
Found bug: vivliostyle.js/packages/core/src/vivliostyle/table.ts Lines 113 to 123 in 20fee03
This does not work as expected when the vivliostyle.js/packages/core/src/vivliostyle/assets.ts Lines 1197 to 1201 in 20fee03
To fix this, However, the case in #1326 (comment) is not resolved in this fix. |
@MurakamiShinyu Ha ha, a major breakthrough!! Thanks for your hard work. |
Fixes the problem that the table break position is not good in some cases. fix #1326
@jiang0112 Please open a new issue to report a new problem. |
Describe the bug
When a large amount of data is entered into a 'td' cell within a table, exceeding the length of two pages, the table automatically paginates. This results in a blank content area above the table.
To Reproduce
table_bug.txt
online viewer
The text was updated successfully, but these errors were encountered: