Skip to content

Suspicious HTML fontSize setting #572

@totemcaf

Description

@totemcaf

I was seeing in slide-wrapper.js that any wrapped component modifies the fontSize of the HTML tag based on its own zoom state.

    if (!this.props.viewerScaleMode) {
      document.documentElement.style.fontSize = `${16 * this.state.zoom}px`;
    }

Is this correct?

What's the use of "viewerScaleMode" attribute?

I was looking for the code that modifies the fontSize of the HTML element after the page starts rendering.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions