Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

API: JS: Screen

nateemerson edited this page · 3 revisions
Clone this wiki locally

Description

The mwf.screen object provides dimensionality information about the static screen size.

Functions & Properties

Current (MWF 1.2)

The following functions are available through mwf.screen:

  • mwf.screen.getHeight() The height of the device screen.

  • mwf.screen.getWidth() The width of the device screen.

  • mwf.screen.getPixelRatio() The pixel density ratio of the device screen (most are 1, iPhone Retina display is 2).

The following attribute is also available through mwf.screen:

  • mwf.screen.cookieName The name of the cookie that assets/js/core/server.js writes.

Previous (MWF 1.0-1.1)

This object did not exist before MWF 1.2.

Something went wrong with that request. Please try again.