binyan Posted May 25, 2015 Share Posted May 25, 2015 I have the following CSS for canvas:#canvas { position: absolute; width: 100%; height: 100%; top: 0; margin-bottom: 70px;}I.e. it should appear in full screen. And it does, until I enable the debug layer. Once I've enabled the debug layer, the things are messed up. On desktop everything works as usual, but on mobile the 100% becomes like 30%. I.e. canvas (and all the related controls, background, etc.) that should take 100% of the screen takes only one corner (left&topmost). Upd:If I set engine.setHardwareScaling(1) everything works ok Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 25, 2015 Share Posted May 25, 2015 Hello, this is interesting. HardwareScaling only change internal buffer size for the canvas> Does it break on all mobile? Quote Link to comment Share on other sites More sharing options...
binyan Posted May 26, 2015 Author Share Posted May 26, 2015 I have only one to check But I checked on two browsers - native and Chrome. Breaks on both of them.First I thought it may be an engine.resize() function (that fixes it up) which called from within engine.setHardwareScaling, but when I tried to do it instead of scaling it didn't work. So somehow the hardware scaling is related... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 26, 2015 Share Posted May 26, 2015 It works on my windows phone unfortunately Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 26, 2015 Share Posted May 26, 2015 Think he saying it was resolved way up at the top. I, myself, do not edit my previous posts, once someone else has responded (even if I spelled gonzo wrong ). This is why. Quote Link to comment Share on other sites More sharing options...
binyan Posted May 26, 2015 Author Share Posted May 26, 2015 No, I'm just saying that setting hardware scaling to 1 solves the problem. But the problem still exists (without scaling). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.