¿Cómo hacer que el contenedor se ajuste a una rejilla GWT?

I have a DataGrid with a SimplePager and when theres less than the predefined number of rows per page (in this case 15) the container will show those rows and leave a white space in between the grid and the simplePager (where the other rows would be).

I have seen some mentions on other sites about rendering datagrid first and then fit it into the container, but i have no idea what this means (Or at least, i don't think they're saying its as easy as removing it from the parent and re-attaching it, since i've tried that already).

Gracias de antemano.

preguntado el 09 de marzo de 12 a las 14:03

1 Respuestas

My proposition - resize container after data fetch, after rendering of grid. It will be just something like this:

container.setHeight(grid.getOffsetHeight() + "px");

Respondido el 14 de junio de 12 a las 08:06

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.