When add appointment

26 views
Skip to first unread message

kakko76

unread,
May 2, 2012, 10:08:54 AM5/2/12
to gwt...@googlegroups.com
Hi,
When we can add appointment? Because I tried after create the calendar but doesn't work (with suspend and resume layout)... I added a Timer to wait 5 secondes after create the calendar and it works...
Thanks.

bradr

unread,
May 2, 2012, 1:56:08 PM5/2/12
to gwt...@googlegroups.com
is the container inside a GWT LayoutWidget (gwt widget that implements RequiresResize and ProvidesResize)? If so, the parent widget should automatically trigger the "onResize" function once the widget is visible in the window

if you are not using a LayoutWidget, you should be able to execute the following code instead of a 5 second timer

Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
    calendar.onResize();
}
});

i know we had a similar question in another thread, i'll try to find it and see what we recommended previously.
Reply all
Reply to author
Forward
0 new messages