I have an html5 canvas element within a flextable and that flextable
is in the root panel. I would like to align the application so it is
displayed in the center of the page both vertically and horizontally.
Currently it is displayed in the upper left hand corner.

code:
Document document = Document.get();
Canvas canvasElement = (Canvas) document.getElementById("canvas");
final MyFocusWidget webGLCanvas = new MyFocusWidget((Element)
canvasElement);
flexT.setWidget(0, 0, webGLCanvas);
RootPanel.get("flexTable").add(flexT);


Any help is appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to