Yes I see.

Maybe the image file dimensions and the dimensions of the Image
instances are "conflicting".

When I get it right the dimensions of the Image instances are never
set. Instead they are resized based on the dimension of the Grid
itself. Now if the Image instances display an image with different
dimensions I can not tell what this results in.

Look at my code, I never call setSize(...) or setPixelSize(...) on the
Grid. It will automatically resize based on the dimensions of its
cells.

Try setting the pixel size of the Image instances (rather than Grid)
so that the (raw) image is perfectly fitted (resolution of the png or
whatever).

In my example the SimplePanel dimensions are simply 40x40 and for the
border cells 40x20/20x40 ... the overall size results in the row and
column sum of all cells dimensions AND is never set manually.

On 28 Jun., 14:48, Magnus <[email protected]> wrote:
> Hello,
>
> I made another screenshot with red borders around the 
> images:http://yfrog.com/cachessboardj
>
> As you can see there is vedrtical space below each image.
>
> I just found out that this is not the case in IE.
>
> Thanks
> Magnus
>
> On 28 Jun., 11:51, andreas <[email protected]> wrote:
>
>
>
> > 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 <[email protected]> wrote:
>
> > > Here is the screenshot:
>
> > >http://yfrog.com/j7chessboardj
>
> > > Magnus- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

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