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/03537a5e2d997d1731ec06c75629ba9e/default,annotatedtimeline+en_US.I.js

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