PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

[BUG] autopage and rowspan

Open AdrianRS22 opened this issue 2 years ago • 3 comments

Issue Category

  • [ ] Enhancement
  • [x] Bug
  • [ ] Question
  • [ ] Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [ v3.11.0 ]
  • Please specify what version(s) of PowerPoint you are targeting: [ 2212 ]
  • Please specify what web browser you are using.................: [ Google Chrome ]

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

AdrianRS22 avatar Mar 18 '23 17:03 AdrianRS22

I am also facing same issue using v 3.12

pk936 avatar Jan 07 '25 15:01 pk936

Same issue in 4.0.0...

yuniet87 avatar May 15 '25 22:05 yuniet87

I have also encountered this issue and made a fix https://github.com/gitbrent/PptxGenJS/pull/1391

ChanKamWo avatar May 20 '25 04:05 ChanKamWo