This is strange. I set up a test page, put in a canvas, and added a button to the canvas:
You can see it here:
https://dev.3dmathpuzzles.com/3dmp/D...therlink2.html
The button is rendering at the top left of the page instead of within the canvas.
Code:
public class DiagonalSlitherlink2 implements EntryPoint { private Canvas canvas = null; public void onModuleLoad() { canvas = new Canvas(); canvas.addChild(new Button("Test Button")); canvas.setHtmlElement(Document.get().getElementById("gwt")); canvas.draw(); } }
https://dev.3dmathpuzzles.com/3dmp/D...therlink2.html
The button is rendering at the top left of the page instead of within the canvas.
Comment