nwixsom / gwt-cal

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

Monthview not show completely an Appointment #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.calendar.clearAppointments();
2.calendar.suspendLayout();
3.Appointment appointment = new Appointment();
4.appointment.setTitle("Test bug");
5.appointment.setStart(new Date(1327363200000L)); //24-01-2012 dd-MM-yyyy
6.appointment.setEnd(new Date(1329091200000L)); //13-02-2012 dd-MM-yyyy
7.calendar.addAppointment(appointment);
8.calendar.resumeLayout();

What is the expected output? What do you see instead?
The appointment only shows between 24-01-2012 and 30-01-2012. I usually do new 
Appoinments with 20 days. All new appointments show 20 days except this case.
This bug is only reproduced on Monthview. 

What version of the product are you using? On what operating system?
Netbeans 7.0
GWT 2.2.0
gwt-cal-0.9.3
Fedora 14

Please provide any additional information below.

CalendarSettings cs = new CalendarSettings();
cs.setOffsetHourLabels(false);
cs.setTimeBlockClickNumber(Click.Double);
cs.setEnableDragDrop(true);

Calendar calendar = new Calendar();
calendar.setSettings(cs);
calendar.setSize("100%", "100%");
calendar.setView(CalendarViews.DAY);
calendar.setDays(7);
calendar.setDate(new Date());

LayoutPanel lp= new LayoutPanel();

lp.add(calendar);

lp.setWidgetLeftRight(calendar, 5, Unit.PX, 5, Unit.PX);
lp.setWidgetTopBottom(calendar, 5, Unit.PX, 5, Unit.PX);

Original issue reported on code.google.com by gollu...@gmail.com on 27 Oct 2011 at 11:33

GoogleCodeExporter commented 9 years ago
I could replicate using CalendarFormat.INSTANCE.setFirstDayOfWeek(1) with 
CalendarFormat.INSTANCE.setFirstDayOfWeek(0) seems to work fine.

Also is not appearing either when showing 7 days.

I could replicate with:
Eclipse 3.7
gwt-cal-0.9.3-SNAPSHOT
OSX

So I think we can safely remove any external problem and focus in some kind of 
bug in the Calendar

Original comment by ctasada on 19 Dec 2011 at 9:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r384.

Original comment by ctasada on 20 Dec 2011 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by ctasada on 20 Dec 2011 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by ctasada on 3 Jan 2012 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by ctasada on 4 Jan 2012 at 7:41

GoogleCodeExporter commented 9 years ago
Issue 86 has been merged into this issue.

Original comment by ctasada on 14 Aug 2012 at 7:45