Skip to content

Live Server runs the web page with a size of 4496x3164 pixels #3177

@McTopaz

Description

@McTopaz

I have a simple web application that I run using the Live Server extension.

When I run these commands in the inspector, I've noticed that the window.innerWidth and window.innerHeight parameters are much larger than expected:

  • window.innerWidth: 4496px
  • window.innerHeight: 3164px

When I deploy the same web application using GitHub Pages and check the same parameters, I get different values:

  • window.innerWidth: 1920px
  • window.innerHeight: 911px

I suspect this is a known bug, but I wanted to provide some actual data.

Problems

  • I cannot use Live Server to develop my application because the view is not consistent with the deployed version on GitHub Pages.
  • Scaling between different devices doesn't work correctly, causing elements to be either too small or too large.

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