FrankyCutty Posted April 2, 2014 Share Posted April 2, 2014 Hi, I want add a game-banner to my website, I have a game width fixed height and full width responsive. I have this home banner: I want to make this(image photoshopped quickly): When I load phaser.min.js in my index.html, not any problem with this. But when I load my main.js the scrollbar disappear instantly: I load phaser.min.js and main.js just after jQuery files: The code of main.js is very simple, I want load a image sprite test: Not even I use the id 'phaser-game'. Thanks for all the help Link to comment Share on other sites More sharing options...
rich Posted April 2, 2014 Share Posted April 2, 2014 So what does DevTools show if you inspect the element? Any properties you wouldn't expect? Link to comment Share on other sites More sharing options...
FrankyCutty Posted April 2, 2014 Author Share Posted April 2, 2014 Hi rich, when I inspect the element appear this: Link to comment Share on other sites More sharing options...
rich Posted April 2, 2014 Share Posted April 2, 2014 Ok so it's a pretty old version of Phaser, but I meant what happens if you use dev tools to inspect the element on the page itself (i.e. the game canvas). Link to comment Share on other sites More sharing options...
FrankyCutty Posted April 2, 2014 Author Share Posted April 2, 2014 I don´t use a div with my id 'phaser-game' for generate the canvas, because the error of scrollbar appears just when I write <script type="text/javascript" src="main.js"> in my index.html Link to comment Share on other sites More sharing options...
rich Posted April 2, 2014 Share Posted April 2, 2014 There's no other way for me to explain the same thing - so I think you need to upload your site somewhere so we can inspect it from here. Also, upgrade Phaser too. Link to comment Share on other sites More sharing options...
Recommended Posts