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

Align property doesn't work in slide number object #835

Closed
ax2mx opened this issue Aug 29, 2020 · 3 comments
Closed

Align property doesn't work in slide number object #835

ax2mx opened this issue Aug 29, 2020 · 3 comments
Assignees
Milestone

Comments

@ax2mx
Copy link

ax2mx commented Aug 29, 2020

Hi!

I've failed to align slide number to the right inside a slideNumber object. center alignment doesn't work either.
The only avaliable option is the default left alignment.

Category

Bug

Versions

PptxGenJS version: 3.3.1
PowerPoint version: PowerPoint for Mac 16.40

Steps to Reproduce

Try to create new slide master with number aligned to the right inside slide number block:

import pptxgen from "pptxgenjs";

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

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

pptx.writeFile("sample.pptx");

Expected Behavior

Slide number aligned to the right inside slideNumber block.

Result

align property has no effect on slide number alignment.

@hegelstad
Copy link

I also have the same issue:

image

image

@gitbrent gitbrent self-assigned this Sep 2, 2020
@gitbrent
Copy link
Owner

gitbrent commented Sep 2, 2020

[DEV]: Possibly related to Issue #836 ? (TextOpts not being honored?)

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

3 participants