Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Device Dimensions for the IFRAME #3

@datapimp

Description

@datapimp

These might come in handy.

They need to be set on the iframe, probably scaled first if you're not using 100 scale. Without these properties the iframe doesn't grow to support the display output.

Screenshot of the Docs

In case I don't get around to submitting a PR

// width and height
const DIMENSIONS = {
  iphone4s: [370, 733],
  iphone5s: [365, 782],
  iphone6: [416, 870],
  iphone6plus: [690, 1420],
  ipadair: [864, 1287],
  iphone6s: [416, 870],
  iphone6splus: [690, 1420],
  ipadair2: [864, 1287],
  nexus5: [400, 795],
  nexus7: [728, 1268],
  nexus9: [866, 1288],
}

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