Tuesday, February 1, 2011

Problem to set height in ScrollPanel in gwt 2.1.1

Hi,

I'm trying to update our project to gwt 2.1 but I have a problem with
the ScrollPanel.setHeight("100%") which doesn't seem to work. We have
the code:

myScrollPanel.add(myBigTable);
myScrollPanel.setHeight("100%");
initWidget(myScrollPanel);

which in 1.7.0 works fine but in 2.1.1 (or 2.1.0) doesn't work. See
image at http://www.agentinteractionsuite.se/diff_between_2.1.1_and_1.7.0.JPG
to clarify what I mean. The right hand side is correct and the left
hand is wrong. It seems like the scrollpanel won't get 100% height no
matter what I do. Have tried setting the height both with css and DOM
but nothing works. Removing the setHeight-line in the code above makes
it look the same (wrong) way with both versions.

Have I missed any essential information? Any ideas?

BR
Oskar

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

No comments:

Post a Comment