DOM.layoutBounds

<static, readonly> layoutBounds : Phaser.Rectangle

The bounds of the Layout viewport, as discussed in
A tale of two viewports — part two;
but honoring the constraints as specified applicable viewport meta-tag.

The bounds returned are not guaranteed to be fully aligned with CSS media queries (see
What size is my viewport?).

This is not representative of the Visual bounds: in particular the non-primary axis will
generally be significantly larger than the screen height on mobile devices when running with a
constrained viewport.

The properties change dynamically.

Properties:
Name Type Description
width number

Viewport width in pixels.

height number

Viewport height in pixels.

Source code: utils/DOM.js (Line 260)

doc_phaser
2017-02-14 10:45:01
Comments
Leave a Comment

Please login to continue.