ScaleManager#windowConstraints

windowConstraints

The edges on which to constrain the game Display/canvas in addition to the restrictions of the parent container.

The properties are strings and can be '', 'visual', 'layout', or 'layout-soft'.

  • If 'visual', the edge will be constrained to the Window / displayed screen area
  • If 'layout', the edge will be constrained to the CSS Layout bounds
  • An invalid value is treated as 'visual'
Properties:
Name Type Description
bottom string
right string

Default Value

  • {"right":"layout","bottom":""}

Source code: core/ScaleManager.js (Line 379)

doc_phaser
2017-02-14 11:09:19
Comments
Leave a Comment

Please login to continue.