tags:

views:

411

answers:

1
+1  Q: 

GWT Relative Width

I'm trying to make a scroll panel that has relative size parameters. But the
ScrollPanel.setSize(String, String)

is impossible to work with if you have int values such as those returned by Window.getHeight, etc. Also when I do something like ScrollPanel.setSize("100%", "150px"); it doesn't change the height of the scrollpanel and instead uses the default. Any help would be appreciated.

+1  A: 

According to the GWT doc for [ScrollPanel][1], they seem to be pretty strict about using the width in absolute and not relative CSS units. Thus the problem may be with the "100%" parameter.

[1]: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#setSize%28java.lang.String, java.lang.String)

Sorin Mocanu