ScaleManager#fullScreenTarget

fullScreenTarget :DOMElement

If specified, this is the DOM element on which the Fullscreen API enter request will be invoked.
The target element must have the correct CSS styling and contain the Display canvas.

The elements style will be modified (ie. the width and height might be set to 100%)
but it will not be added to, removed from, or repositioned within the DOM.
An attempt is made to restore relevant style changes when fullscreen mode is left.

For pre-2.2.0 behavior set game.scale.fullScreenTarget = game.canvas.

Source code: core/ScaleManager.js (Line 248)
doc_phaser
2017-02-14 11:09:05
Comments
Leave a Comment

Please login to continue.