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