brOOper / gwt-cal

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

MonthView days highlighted when dragging off by 1 #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hey Carlos,

When dragging multi-day appointments in the MonthView it seems to be 
highlighting the day cells incorrectly.

For example, if I am dragging a 2-day appointment it highlights 1 day, and 
if I am dragging a 3-day appointment it highlights 2 days.

I checked a prior version that we had deployed and it seemed to work fine
http://google.latest.gwt-web-calendar.appspot.com/

Maybe a minor bug when adding the startsWithDay functionality? I couldn't 
tell so I was hoping you could take a look please

Original issue reported on code.google.com by Brad.Ryd...@gmail.com on 29 Mar 2010 at 12:13

GoogleCodeExporter commented 8 years ago
This ended up being a really, really simple fix:
FROM int dateDiff = DateUtils.differenceInDays(endDate, startDate);
TO int dateDiff = DateUtils.differenceInDays(endDate, startDate)+1;

Adding +1 to the dateDiff fixed the problem

Original comment by Brad.Ryd...@gmail.com on 30 Mar 2010 at 4:21

GoogleCodeExporter commented 8 years ago

Original comment by Brad.Ryd...@gmail.com on 12 May 2010 at 7:06