hunthu2000 / gwt-cal

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

bugs using Calendar.setview(CalendarViews.MONTH) #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.in the month view, the added appointments don't show
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
GWT-2.0.3
NetBeans 6.8

Please provide any additional information below.
 Calendar calendar = new Calendar();
        calendar.setDate(new Date()); //calendar date, not required
        calendar.setView(CalendarViews.MONTH); //number of days displayed 
at a time, not required
        calendar.setWidth("500px");
        calendar.setHeight("400px");
        Appointment appt = new Appointment();
        Appointment appt2 = new Appointment();
        Date s=new Date();
         appt.setStart(s);
          appt2.setStart(s);
         s.setHours(s.getHours()+4);
        appt.setEnd(s);
         appt2.setEnd(s);
        appt.setTitle("test");
        appt.setDescription("test");
        appt2.setTitle("test2");
        appt2.setDescription("test2");
         calendar.addAppointment(appt);
         calendar.addAppointment(appt2);
        // calendar.addAppointment(appt);

         RootPanel.get().add(calendar);

Original issue reported on code.google.com by bienvenueqin@gmail.com on 14 Apr 2010 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
This is a known bug with the MonthView only (it works fine with the DayView). 
The 
recommended workaround it add your calendar to the root panel *first*, then you 
can add 
appointments.

Original comment by Brad.Ryd...@gmail.com on 14 Apr 2010 at 4:28

GoogleCodeExporter commented 9 years ago

Original comment by Brad.Ryd...@gmail.com on 14 Apr 2010 at 4:29