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

Table headers get copied #36

Closed
bramschulting opened this issue Jun 7, 2015 · 4 comments
Closed

Table headers get copied #36

bramschulting opened this issue Jun 7, 2015 · 4 comments

Comments

@bramschulting
Copy link

Reproduction

  1. Create a PDF from HTML containing a table that overflows onto the next page

Current behaviour

The table headers gets rendered twice, overlapping the table body.

Expected behaviour

The header only gets rendered once.

Files and screenshots

Here you can find the actual PDF, but the following screenshot shows the problem as well:

screen shot 2015-06-07 at 23 53 25

@marcbachmann
Copy link
Owner

The repeating table header is the expected behavior. Although the style is a bit strange. I guess if you want to disable that, you can add the css thead {display: block} or don't use thead.

@bramschulting
Copy link
Author

Thanks, but when I add thead {display: block}, the head looks like this.
screen shot 2015-06-09 at 23 41 16

Leaving out the thead is not really an option for me. Are there any other options?

@marcbachmann
Copy link
Owner

Oh, yeah, you have to use display: table-row-group. Sadly there's no other solution except altering the dom using js (or patching QT), which I wouldn't do.

@bramschulting
Copy link
Author

Worked perfectly! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants