Skip to content

[Chalkboard] Percentage units for the aspect ratio do not work #104

Open
@jwarz

Description

@jwarz

The chalkboard using percentage units does not work. Only absolute values for the aspect ratio can be supplied. Is there a workaround to fit the chalkboard to different resolutions?

Working Example:

Reveal.initialize({

  width: 960,
  height: 700,

  margin: 0.04,

  minScale: 0.2,
  maxScale: 2.0

  chalkboard: {
			        src: "plugin/chalkboard/chalkboard.json",
		        }

});

Non working Example:

Reveal.initialize({

  width: 100%,
  height: 100%,

  margin: 0.04,

  minScale: 0.2,
  maxScale: 2.0

  chalkboard: {
			        src: "plugin/chalkboard/chalkboard.json",
		        }

});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions