pagedjs icon indicating copy to clipboard operation
pagedjs copied to clipboard

0.5.0-beta.2 still has table row missing issue

Open shamith-smp-dgt opened this issue 1 year ago • 6 comments

0.5.0-beta.2 still has the last table row missing issue. the last row sometimes appear when i adjust the margin and paddings. even the margins of other elements like h1, p affects the table not just the margins and paddings of the table. I've recreated the error and attached the files.

0.5.0-beta.2 table row missing error.zip

Image

shamith-smp-dgt avatar Feb 02 '25 14:02 shamith-smp-dgt

I also have the same problem with my project. Any updates on this issue so far?

giangnguyen87 avatar Feb 04 '25 02:02 giangnguyen87

I also have the same problem with my project. Any updates on this issue so far?

No luck so far. I just adjust the margin top of tables that's not breaking correctly.

shamith-smp-dgt avatar Feb 04 '25 04:02 shamith-smp-dgt

No luck so far. I just adjust the margin top of tables that's not breaking correctly.

I do too, that workaround only helps with a specific data; with other data, the rows are still missing.

giangnguyen87 avatar Feb 04 '25 04:02 giangnguyen87

I also have the same problem with my project. Hopefully, the issue will be resolved soon.

pvanh2706 avatar Feb 04 '25 07:02 pvanh2706

Might be related to this code lines in Layout.lastChildCheck() which removes the last element recursive if any of it's children is overflowing:

if (parentElement.dataset.overflowTagged && parentElement.textContent.trim() == '') {
	parentElement.parentNode.removeChild(parentElement);
}

maheini avatar Feb 27 '25 22:02 maheini

This worked for me:

table { table-layout: fixed; }

janastremfelj avatar Jun 11 '25 09:06 janastremfelj