nwixsom / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

appointments not showing in month view #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.set the calendar to month view
2.add an appointment to the calendar

What version of the product are you using? On what operating system?
gwt-cal-0.9.1.jar, gwt-dnd-2.6.5.jar and gwt-1.7.0

Please provide any additional information below.
this is snippet I run
            final Calendar calendar = new Calendar(CalendarViews.MONTH);
            calendar.setWidth("500px");
            calendar.setHeight("400px");

            CalendarSettings settings = new CalendarSettings();
            settings.setEnableDragDrop(false) ;
            calendar.setSettings(settings);

            Appointment appt = new Appointment();                       
            appt.setStart(new Date(111,0,20,0,0,0));
            appt.setEnd(new Date(111,0,21,0,0,0));
            appt.setTitle("test1");
            appt.setDescription("TEST");

            calendar.addAppointment(appt);

             DeferredCommand.addCommand(
                 new Command() {
                     public void execute() {
                         calendar.resumeLayout();
                     }
                 }
             );

Original issue reported on code.google.com by diego.a...@gmail.com on 6 Jan 2011 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
I found out! 

DeferredCommand.addCommand(
     new Command() {
         public void execute() {
             calendar.setView(CalendarViews.MONTH);
         }
     }
 );

Original comment by diego.a...@gmail.com on 12 Jan 2011 at 2:04

GoogleCodeExporter commented 9 years ago
Solution found by OP. Closing issue.

Original comment by carlos.m...@gmail.com on 1 Feb 2011 at 1:46