Closed helluvamatt closed 1 month ago
The behavior of MigraDoc tables is exactly as we see it with MS Word tables.
I admit the behavior of LeftPadding was counter-intuitive at first, but it is a feature, not a bug.
Damn. I'm used to CSS where every CSS framework/reset sets box-sizing: border-box;
when the default is content-box
which is this exact behavior. Nothing to see here, move along citizen.
I'd like to mention that maybe the desired effect can also be achieved using a Paragraph
with border and background color instead of using a table.
There seems to be an issue with using
LeftPadding
on aTable
orColumn
with MigraDoc. I am using the "Core" build.Expected Behavior
The generated PDF should contain a table with a single cell which spans the full width of the page (minus margins) and contains some centered text.
Actual Behavior
The generated PDF contains a table with a single cell that is rendered off the left side of the page.
Example: bug.pdf
Steps to Reproduce the Behavior
Use the following code to generate a PDF which reproduces this bug. You may also need code to setup fonts and styles to use the fonts.