Screen [mwf.screen]
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.