You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Since revision 161, it's possible on 0.9 to create appointments from the
dayview, I started a patch to do the same on monthview (see attachement),
but I have some problems, the following chunk of code return different
values for (col, row) if I click on the top-left or the bottom-right of a cell:
int col = (int)Math.floor( (x * DAYS_IN_A_WEEK)
/ monthCalendarGrid.getOffsetWidth() );
int row = (int)Math.floor( (y * monthViewRequiredRows)
/ monthCalendarGrid.getOffsetHeight() )+1;
Hence the computed date that follow is not correct. Where am I wrong ?
On a side note I don't know if (line 20 of the patch):
clickedElement == appointmentCanvas.getElement()
is relevant there.
Original issue reported on code.google.com by bertrand...@gmail.com on 9 Dec 2009 at 3:22
Original issue reported on code.google.com by
bertrand...@gmail.com
on 9 Dec 2009 at 3:22Attachments:
The text was updated successfully, but these errors were encountered: