Yep. There's an   in the cell so you will have to set the font size
really small.
You'd be better off doing all this by setting style classes and doing it in
css.

Ian

http://examples.roughian.com


2009/6/28 hezjing <hezj...@gmail.com>

> Hi
>
> I want to achieve a rounded corner rectangle using Grid.
>
> Here I create a 3x3 grid:
>
> Grid grid = new Grid(3, 3);
>  grid.setCellPadding(0);
> grid.setCellSpacing(0);
> // display the border for debugging
>  grid.setBorderWidth(1);
>
>
> Imagine that I have a 5x5 pixel corner images, so I specify the width and
> height of the top row like the following:
>
> CellFormatter formatter = grid.getCellFormatter();
> // top left corner
>  formatter.setWidth(0, 0, "5px");
> formatter.setHeight(0, 0, "5px");
>  // top center
> formatter.setWidth(0, 1, "100%");
> formatter.setHeight(0, 1, "5px");
>  // top right corner
> formatter.setWidth(0, 2, "5px");
> formatter.setHeight(0, 2, "5px");
>
>
> The problem is when tested in hosted mode, the cell doesn't display in the
> specified height!
>
> Did I miss anything here?
>
>
> Please help, thank you!
>
>
> --
>
> Hez
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to