fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Extra Cavnas <div> pushes game down in FireFox without WebGL #243

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a PlayN 1.7.2 project (I don't think 1.7.0 will produce the error)
2. View it in Firefox with WebGL disabled (about:config -> search 
"webgl.disabled" and set it to true)
3. The game canvas is pushed down 480 pixels

What is the expected output? What do you see instead?
I expect the game to display normally.

Please provide any additional information below.

What version of the product are you using? On what operating system?
Upon inspection of the HTML, it seems PlayN is creating two placeholder divs:

<div style="width: 640px; height: 480px">
  <div style="visibility: hidden; position: absolute; top: -500px; overflow: visible;"></div>
</div>
<div style="width: 640px; height: 480px">
  <div style="visibility: hidden; position: absolute; top: -500px; overflow: visible;"></div>
<canvas width="640" height="480"></canvas></div>

The second actually contains the canvas. A screenshot is attached.

Original issue reported on code.google.com by thomaswp...@gmail.com on 7 Sep 2013 at 5:03

Attachments: