Monday, June 28, 2010

Re: how to control the pixel sizes of a Grid?

Where exactly are the vertical spaces? From what I see, there are no
spaces between the cells of the top and bottom row and the spaces
between the cells in the left and right column are of the same color
as the image background, so I assume there are actually also no
spaces, correct me on this one?

For better debug you could also assign a border and background color
to the Grid. If none of these colors will be visible you can be sure
that there are no spaces or anything left.

For the inner cells I can not say if there are any spaces.

Also I assume your style "pnl-r" adds the red border to the Grid? If
there were any spaces left caused by the border width you would see a
red Grid.

I think you got what you wanted...

BTW: I think you do not need to set the cell dimensions manually; Grid
will automatically adjust cell dimensions so that the cell widgets
fit, in other words a columns width for example will be adjusted so
that the cell widget with the biggest width is completely visible;
same goes for rows and heights and so on

BTW2: the two for-blocks in init() can be realized in one single for-
block since they iterate over exactly the same interval (0-9)

On 28 Jun., 11:27, Magnus <alpineblas...@googlemail.com> wrote:
> Here is the screenshot:
>
> http://yfrog.com/j7chessboardj
>
> 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 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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate