docx
docx copied to clipboard
Space in TableCell, when used Table in TableCell. Its problem only in google document
Thank you for raising an issue to docx
Hi, i have problem, when i used new Table inside new TableCell, arounde Table create free space, for example used this code Its problem only in google docs.
new TableCell({
columnSpan: 2,
width: {
size: 5453.85,
type: WidthType.DXA,
},
children: [
new Table({
rows: [
new TableRow({
children: [
new TableCell({ children: [new Paragraph({ children: [textBase({ text: '123' })] })] }),
],
}),
],
}),
hi @jerryk1925 try to add a width to your table like
new Table ({ ... width: { size: '100%', type: WidthType.PERCENTAGE }, ... })
hope this could help you!
You can view it correctly only on Microsoft Word it seems
@jerryk1925 did you solve this issue?
I'm facing the same issue, I'm working on a Mac, this issue happens on Pages as in Google Docs. I don't have access to MS Word to check it there :(
no i cant fix this problem(
@jerryk1925 did you solve this issue?
I'm facing the same issue, I'm working on a Mac, this issue happens on Pages as in Google Docs. I don't have access to MS Word to check it there :(
I think you can access to Microsoft Word online with an outlook account, you may check it.
Hey @jerryk1925 @CarrionB @filoscoder https://github.com/dolanmiu/docx/issues/216 has the correct fix for this. You need to set the table with columnWidths
and make sure the TableCell
width
matches that.