Skip to content

Margin not working with placeholder text (v3) #640

@bestis

Description

@bestis

Hi,

This used to work:
defineSlideMaster having object:

{
	placeholder: {
		options: {
			name: "title",
			type: "title",
			x: leftMargin,
			y: 0.2,
			w: layoutWidth - leftMargin - logoWidth,
			h: 0.3,
			bold: true,
			fontFace: "Helvetica",
			color: "404040",
			fontSize: 18,
			align: "left",
			valign: "middle",
			margin: 0,
		},
		text: "",
	},
},

And then adding to it.

imageSlide.addText(slideTitle, {
	placeholder: "title",
});

Some screenshots to visualize the problem:

Old version:
title-has-no-margin-v2
New version:
title-has-margin-v3
And settings:
title-has-margins-v3

Tested with https://github.com/gitbrent/PptxGenJS.git#2cee3f0c412106aefb1f87fc16bfef78ae5521a7 (as it solved the JSZip problem).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions