Skip to content

Auto break when rendering Table doesnt seem to respect t_margin #817

Answered by VonArmin
VonArmin asked this question in Q&A
Discussion options

You must be logged in to vote

Okay so Ive found a workaround.

The problem was when using both set_xy in the header method it overrrides the coordinates set in set_top_margin.

I just added an extra set_xy at the end of my header method (since this function will also be called when add_page is called though the auto break process) (note: the header method is called first, followed by setting the self.x and self.y to the left and top margins, why that isnt working as expected, im not sure)

I can still provide a reproduction later if necessary.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Lucas-C
Comment options

Answer selected by VonArmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants