Reputation: 1952
I'm developing an application using GWT. I'm using celltable to display dynamic values from database (based on a query). I have following queries:
Assume: I have set the table height as 100px. I have placed the table in a scrollpanel.
I have tried these: I thought, by obtaining the tables new and old height, I could resize by calling setHeight() and for the parent's height, by getParent().setHeight(). However, I was stupid to think this way as I'm setting the value of the height for the table to be 100px. As this is static, it would print the same value for old and new height and would change nothing.
Any ideas of how to proceed with this??
P.S: I'm using GWT2.3
Upvotes: 2
Views: 4074
Reputation: 788
You're sure that you're not setting a fixed size for the celltable containers?
The containers will shrink, expand with the celltable, but they also need to not have their height set (the height defaults to auto - which is the behavior that you need).
Upvotes: 4