Skip to content

Round up document.documentElement.offsetHeight ?? #35

Description

@golfecholima

In src/frames.js, I wonder if it would make sense to round up to the nearest whole pixel here:

function getDocumentHeight() {
	return document.documentElement.offsetHeight;
}

In LAT CMS at least it appears to be causing scroll bars (presumably because our CMS is rounding down??)

Surely there's some unintended consequence of doing this that I'm not thinking of ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions