gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.88k stars 633 forks source link

[BUG] autopage and rowspan #1231

Open AdrianRS22 opened 1 year ago

AdrianRS22 commented 1 year ago

Issue Category

Product Versions

Desired Behavior

This issue is related to this https://github.com/gitbrent/PptxGenJS/issues/983 but it's closed and just says autopage was completely rewritten in v3.8.0 but issue is still present in the latest one, (I also tried in the v3.8.0).

The Desired Behavior should be the following, the table should keep the row spanned in autoPage when there is an overflow. This is an example image PS: I disabled the autoPage to show up the desired behavior, If autopage is set to true, it should keep the spanned row.

Observed Behavior

When set autopage to true, It's ignoring the spanned row, maybe because It's no present when reading the second slide. First slide image Second slide image So It's not doing the same behavior as the desired behavior.

Steps to Reproduce

Here I provide you with a sandbox reproducing the issue, It's using v3.11.0 https://codesandbox.io/s/ppt-autopage-rowspan-bug-cvo08z

Just click on the download PPT button to see the output, and also for testing purposes to get the observed and desired behavior results you can enable and disable the autopage to see the difference, Thanks.

This issue is also present also in HTML to PowerPoint feature