After trying the suggestion to use pixels instead of percent in the
flexTable.setWidth() method I have determined that the same error as
before repeats.
flexTable.setText(0, 0, "foo");
appears easily, but any instance of
flexTable.setWidget(0, 0, new Label("foobar));
where anything is put into the Widget, will not appear.
Any thoughts or advice?
On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
> Srini,
>
> Thanks I will try that and let you know what happens. This still does
> not adequately explain to me why a Text portion will show up, but not
> a widget, including a Label widget that contains text. What is
> different about setText and setWidget that a pixel width setting would
> make a noticeable difference?
>
> -Zach
>
> On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > of nothing is 0px depending on your layout)
>
> > flexTable.setWidth("200px");
>
> > -Srini
>
> > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > I am currently developing an application where GWT has been the
> > > primary API. So far things have gone fairly well until I began trying
> > > to implement a data entry portion. I am experience strange behavior
> > > with FlexTable where if I use
>
> > > FlexTable.setText(0, 0, "foo");
> > > FlexTable.setText(0, 1, "bar");
>
> > > The data shows up as intended. However if I do
>
> > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > suddenly the components are not appearing on the screen. I cannot
> > > figure out why setText data appears, but setWidget does not want to
> > > render. I experienced the same behavior using Grid as well, so I am
> > > at the point where I feel like I have missed something obvious. I
> > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > This really makes no sense. As for the other Widgets/Panels that are
> > > being used see the following:
>
> > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > then being added to a DockPanel.
>
> > > i.e.
>
> > > VerticalPanel.add(FlexTable);
> > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---