Re: Grid component spacing question.
Style it with display: block;. Images by default are inline which
leaves space for text footers. Yeah that makes no sense..
On May 8, 3:41 pm, Julio Faerman <jfaer...@gmail.com> wrote:
> I have a undesired white space in my grid cell between the image
> bottom and the cell border.
>
> This simple code shows the problem:
>
> public class MyApp implements EntryPoint {
> public void onModuleLoad() {
> Grid grid = new Grid(1,1);
> Image image = new Image();
> image.setUrl("http://shpyrko.files.wordpress.com/
> 2007/07/31persistenceofmemory.jpg");
> grid.setWidget(0,0,image);
> grid.setBorderWidth(1);
> RootPanel.get().add(grid);
> }
>
> }
>
> Here you can see it running:http://theximp.appspot.com
>
> I wonder if this is caused by some default style... help anyone?
>
> Thanks in advance,
> Julio
>
> --
> 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 athttp://groups.google.com/group/google-web-toolkit?hl=en.
--
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