Ok..I know there must be many workarounds...

But I wold like to know the reason this is happen.

I am taking a look at Firebug, but is not easy to undertand...


2010/1/22 Felipe <felipe.andres.p...@gmail.com>

> mmmmm ....
>
> I don't know if is the better solution, this maybe:
>
>
> public void afterLoad () {
>
>   if ( tablaScroll.getDataTable().getColumnCount() == 1) {
>      // setColumnWitdh
>   } else {
>      // otra cosa.
>   }
>
> }
>
> regards.!
>
> On Jan 22, 9:46 am, Ashar Lohmar <asharloh...@gmail.com> wrote:
> > this might sound like a stupid workaround ... but can't you add an if
> > statement or something to check if the table will have only one
> > column ?! and for that use setColumnWidth ...
> > i know that this is not a real answer but this is the only thing that
> > comes into my mind without trying the real source/objects to see
> > another "trick"
> >
> > hope it helps
> > good luck
> >
> > On Jan 22, 2:57 am, Alexei Telles <alexeitel...@gmail.com> wrote:
> >
> > > Hi, I'm just starting using the gwt-incubator.
> > > I need to make a table, so I am using a FixedWidthFlexTable to the
> > > header and a FixedWidthGrid to the dataTable (content of the table).
> >
> > > I have a procedure that mounts the dataTable
> >
> > > The problem that I am having is:
> > > when my dataTable have more than one column, the dataTable is ok
> >
> > > I am setting the width to 100%, so my table fits my div at all.
> >
> > > But when my table have only one column, I don't know why the column
> > > width stays to short
> > > Of course, if I use the method setColumnWidth of the FixedWidthGrid
> > > works fine, but I use the same procedure to generate all tables of my
> > > application, so I can't do that!!!
> >
> > > I don't know if I gave a good explanation about my problem.
> >
> > > I am trying to use the Firebug to discover what i am doing wrong, but
> > > the HTML code generated is a little confused.
> >
> > > Is ther anything in the FixedWidthGrid about the first column of the
> > > table, or is there a way to I set all widths of my table like
> > > automatic?
> >
> > > I appreciate any help
> >
> > > Thanks...
> >
> >
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://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-tool...@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