Skip to content

small bug in full-width option #4

@inbetweencode

Description

@inbetweencode

Hi Andrew, very good page builder!

In frontend.js you use this.el.style.width = window.innerWidth + "px";
innerWidth includes the scrollbar.

I first believed changing this to window.clientWidth fixes the problem.
But I had more succes changing to document.body.clientWidth.

This may lead to other issues when the body isn't full-width.

Furthermore, There are some problems with window resizing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions