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

Creating appointment on monthview #17

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

Creating appointment on monthview #17

GoogleCodeExporter opened this issue Sep 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

@GoogleCodeExporter
Copy link
Author

I added in the TimeBlockClickEvent to the MonthView, r217

Original comment by Brad.Ryd...@gmail.com on 20 Dec 2009 at 8:00

  • Changed state: Fixed
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Release0.9

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