Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Margin doesn't work in slide number object #836

Closed
ax2mx opened this issue Aug 29, 2020 · 1 comment
Closed

Margin doesn't work in slide number object #836

ax2mx opened this issue Aug 29, 2020 · 1 comment
Assignees
Milestone

Comments

@ax2mx
Copy link

ax2mx commented Aug 29, 2020

Failed to set margin of slideNumber block to zero.

Category

Bug

Versions

PptxGenJS version: 3.3.1
PowerPoint version: PowerPoint for Mac 16.40

Steps to Reproduce

Try to create new slide number block with zero margins:

import pptxgen from "pptxgenjs";

pptx.defineSlideMaster({
  title: "Text Slide",
  slideNumber: {
    x: "90%",
    y: "10%",
    w: 0.5,
    margin: 0,
    fontSize: 12,
    lineSpacing: 16
  }
});

slide = pptx.addSlide({ masterName: "Text Slide" });

pptx.writeFile("sample.pptx");

Expected Behavior

slideNumber block has zero margins.

Result

margin: 0 has no effect on slide number margin.

@gitbrent gitbrent self-assigned this Sep 2, 2020
gitbrent added a commit that referenced this issue Dec 25, 2020
gitbrent added a commit that referenced this issue Dec 25, 2020
gitbrent added a commit that referenced this issue Dec 25, 2020
@gitbrent gitbrent added this to the 3.4.0 milestone Dec 25, 2020
@gitbrent
Copy link
Owner

Fixed, thanks for reporting this @ax2mx !

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants