getCellPadding and getCellSpacing rely on getPropertyInt from the
Element class. This will return 0 if the value if not set. The padding
that you are seeing is either from CSS or a browser default style.

On Jan 12, 4:59 am, "Fred Janon" <[email protected]> wrote:
> I am using GWT 1.5.3, I create a Grid and even though getCellPadding and
> getCellSpacing both report 0 by default, when I set them both to 0, the
> space between cells decreases. Am I missing something or is a known issue?
>
>              int padding = grid.getCellPadding();
>              int spacing = grid.getCellSpacing();
>              GWT.log("ColorPicker createColorGrid: padding: " + padding + "
> spacing: " + spacing, null); // padding 0 spacing 0
>              // for some reason, even when the padding and spacing is
> reported as 0, setting them to 0 decreases the space between cells.
>              grid.setCellPadding(0);
>              grid.setCellSpacing(0);
>
> Thanks
>
> Fred
--~--~---------~--~----~------------~-------~--~----~
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