Monday, May 24, 2010

Re: How to remove last cell spacing from a Grid

Try setting the styling of the images to include "display: block;".
Images are default display: inline which leaves extra space for text
footers and such.

On May 24, 4:03 am, outsource lucas <outsourcelu...@gmail.com> wrote:
> solved it partly by this:
>
>                 Grid grid = new Grid(3,3);
>                 grid.setStyleName("grid");
>                 CellFormatter cellformat=grid.getCellFormatter();
>                 cellformat.setStyleName(0, 0, "NW");
>                 cellformat.setStyleName(0, 1, "N");
>                 cellformat.setStyleName(0, 2, "NE");
>                 cellformat.setStyleName(1, 0, "W");
>                 cellformat.setStyleName(1, 1, "C");
>                 cellformat.setStyleName(1, 2, "E");
>                 cellformat.setStyleName(2, 0, "SW");
>                 cellformat.setStyleName(2, 1, "S");
>                 cellformat.setStyleName(2, 2, "SE");
>
> now i set the TDs directly.
>
> but i can't set the TD size smaller than 6x18??? as if there is text
> there which keeps the minimum size?

--
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