Jump to content

Injecting Phaser in a Flexbox div


Recommended Posts

Good afternoon everyone,

I'm having some problems fitting Phaser inside a responsive div. I have already achieved this with bootstrap, but this project requires flexbox -- and it's not working as intended.


I have noticed that when Phaser is injected in a div inside a flexbox container, the resize event is not fired when the window changes size. I have tried fitting it in a div with "position: absolute" that follows x, y, width and height properties of the flexbox item, but with no success.


Has anyone tried this before? Maybe it's something trivial that I'm missing.


Thanks in advance,

Pedro Antoninho

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...