The tricky part of GWT is you can define the layout of a component by
a lot of ways:
- Directly by CSS ( gwt-Flextable )
- By CSS on code ( setStyleName )
- With wigdet methods ( setWidth )
- With the style attribute ( style="width..." )
- By DOM on code ( DOM.setStyleAttribute(panel.getElement(), "width",
"auto"); )
sometimes it gets you mad, I know.
Use Firefox with Firebug to see what CSS and sytyles are finally
applied to a wigdet or element.
To expand it, I would use:
{
panel = new FlexTable();
pane.setSize("100%","100%")
DOM.setStyleAttribute(panel.getElement(), "height", "100%");
DOM.setStyleAttribute(panel.getElement(), "width", "100%");
}
If anyone uses a better way, please let us know... I see it very
redundant.
Oscar