Yep, same thing here. And when I output with an alert whatever panel I
use for a container, before putting the timeline in it,
like this :

Window.alert(String.valueOf(panel));

I get stuff like

<div style="width: 500px; height: 200px;"></div>

which seems to point that the panel actually has its sizes set.

I love this chart component and would like to use it more than any
other I found.


On Feb 27, 12:10 am, "Rune V. Sjoen" <[email protected]> wrote:
> I get this error when I try to add an annotated timeline to a simple
> test application, exactly which container are we talking about here ?
> Isn't the SimplePanel the container of the widget, and that one
> certainly has a fixed size.
>
> com.google.gwt.core.client.JavaScriptException: (Error): Container
> height is zero. Expecting a valid height.
>  fileName:http://www.google.com/uds/api/visualization/1.0/03537a5e2d997d1731ec0...
>
> public class Test implements EntryPoint {
>     public void onModuleLoad() {
>         final SimplePanel p = new SimplePanel();
>         VisualizationUtils.loadVisualizationApi(new Runnable() {
>             @Override
>             public void run() {
>                 AnnotatedTimeLine t = new AnnotatedTimeLine("800",
> "500");
>                 DataTable data = DataTable.create();
>
>                 p.setHeight("300");
>                 p.setWidth("500");
>                 p.add(t);
>
>                 t.draw(data);
>             }
>         }, AnnotatedTimeLine.PACKAGE);
>
>         RootPanel.get().add(p);
>     }
>
> }

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