Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Sep 9, 2015 · 2 comments
Closed

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

GoogleCodeExporter opened this issue Sep 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant