Hey Magnus,

I had a similar problem where I had to control the dimensions of grid cells.
Setting the dimension directly does not work. What I did then was to insert
SimplePanel into each cell and set the dimension of these SimplePanels.

This is also sort of a workaround but you will not have to rely on Image
sizes. You can simply adjust dimensions by methods of SimplePanel. You can
even set background colors via getElement().getStyle().

Greetings,

Andreas

2010/6/25 Magnus <[email protected]>

> I am trying to do something similar with a Grid, but I have problems
> with the pixel sizes:
>
> - I cannot really contol the size of the cells. I can set the height,
> but not the width. The width depends on the width of the whole grid
> - when I add an image into a cell, the size of whole row/column may
> change when the image is slightly too big
>
> Of course one can deal with these things, by computing the size of the
> whole grid, and using images with the correct sizes, but as a result
> the whole thing is based on tricky workarounds and not really
> predictable.
>
> I am thinking about using the gwt-Canvas widget, but this is in an
> experimental state and I don't know if I should build on it. What do
> you think about this?
>
> Thanks
> Magnus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Andreas Horst
Sohnreystraße 8, 30173 Hannover
Tel. +49 (0)170 4162251, mailto:[email protected]

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

Reply via email to