natros / gwt-cal

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

Appointment Displayed in the header over Lapping with Dates. #163

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Using The code below I Do get the monthly Calender but the  Appointment are 
rendered on the very top and not like shown in the demo, and they are shown as 
seprate Appointment not a combined Appointment.

What is the expected output? What do you see instead?
I Do get the monthly Calender but the  Appointment are rendered on the very top 
inside the header,  and not like shown in the demo.
Also the intention is to create event spanning multiple Days.Insted 3 seprate 
events are created. 

If I drag one one of the events from the header on the Calender the other 2 
then moves from the header to the respective dates (i.e 24 and 25 

What version of the product are you using? On what operating system?
Windows 7 /gwt-cal-0.9.3.jar / GWT2.4.0

Please provide any additional information below.
private static int year = today.getYear();   
private static int month = today.getMonth();   
private static int start = today.getDate() - today.getDay();

Calendar calendar = new Calendar(); 
calendar.setWidth("700"); 
calendar.setHeight("500"); 
calendar.setView(CalendarViews.MONTH,1); 

Appointment appt = new Appointment(); 
appt.setStart(new Date(year,month,23,0,0)); 
appt.setEnd(new Date(year,month,23,23,59)); 
appt.setTitle("Doctors Appointment"); 
appt.setCustomStyle("gwt-appointment-green");
calendar.addAppointment(appt);

Appointment appt2 = new Appointment(); 
appt2.setStart(new Date(year,month,24,0,0)); 
appt2.setEnd(new Date(year,month,24,23,59)); 
appt2.setTitle("Multi Day event"); 
appt2.setDescription("From Dec 23 10am to Dec 24 1:30pm"); 
calendar.addAppointment(appt2);

Appointment appt3 = new Appointment(); 
appt3.setStart(new Date(year,month,25,0,0)); 
appt3.setEnd(new Date(year,month,25,23,59)); 
appt3.setTitle("Multi Day event"); 
appt3.setDescription("From Dec 23 10am to Dec 24 1:30pm"); 
calendar.addAppointment(appt3);

Original issue reported on code.google.com by bilal....@gmail.com on 22 Jul 2012 at 4:53

Attachments:

GoogleCodeExporter commented 8 years ago
My bad this Issue has been reported earlier and fix is to first add The 
Calender to the Root,  and then  add appointments to the Calender.
Reported in issue 38.
Calendar in MonthView will not show Appointments added before Calendar added to 
a panel 

http://code.google.com/p/gwt-cal/issues/detail?id=38

Original comment by bilal....@gmail.com on 22 Jul 2012 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by ctasada on 29 Jul 2012 at 3:17