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

CalendarMonthView - click over 6's row #9

Open
MaximKorobov opened this issue Dec 26, 2011 · 6 comments
Open

CalendarMonthView - click over 6's row #9

MaximKorobov opened this issue Dec 26, 2011 · 6 comments

Comments

@MaximKorobov
Copy link

Is it possible to select date on 6 (5 if we starts from 0) row?

I mean july 31, october 30-31 of 2011.

I tried UICalendar for monotouch, which seems like fork of this component, and it is possible to select 6's row date.

@escoz
Copy link
Owner

escoz commented Dec 26, 2011

It's a bug, i have it fixed in one other project, but completely forgot to
push that to this branch.. I'll try to do that soon!

On Mon, Dec 26, 2011 at 8:38 AM, MaximKorobov <
[email protected]

wrote:

Is it possible to select date on 6 (5 if we starts from 0) row?

I mean july 31, october 30-31 of 2011.

I tried UICalendar for monotouch, which seems like for of this component,
and it is possible to select 6's row date.


Reply to this email directly or view it on GitHub:
#9

@MaximKorobov
Copy link
Author

Could I do something or donate a bit of $ to speed up fixing this issue? I should do other tasks over project too.

I tried https://github.com/Clancey/UICalendar fork, but it's not very nice. For example, I didn't found IsDateAvailable() event.

@MaximKorobov
Copy link
Author

Also, how to get new calendar's height, when user switch to october 2011? It should be bigger than MonthView.Frame.Height.

OK, I made MonthView._scrollView as public and use such code to get frame of View under calendar:
RectangleF frame =
new RectangleF(MonthView.Frame.Left,
MonthView._scrollView.Frame.Top + MonthView._scrollView.Frame.Height,
View.Frame.Width,
View.Frame.Height - (MonthView._scrollView.Frame.Top + MonthView._scrollView.Frame.Height));

@BHamrin
Copy link

BHamrin commented Jan 11, 2012

Hi !
I also have the problem with a month that have 6 weeks.

@coolfuzz
Copy link

I solved the problem by inserting in MoveCalendarMonths() just before SetNeedsDisplay

Frame = new RectangleF(Frame.X, Frame.Y, _scrollView.Frame.Size.Width, _scrollView.Frame.Size.Height+44);

SetNeedsDisplay();

This worked in the new codebase. Although i could not use that because of to many changes by me in the old one. I also had to do a quick and dirty fix in the old base, in SelectDayView() by removing two lines which prevents current day to be selected: the last date in current month in sixth row seems to be the selected by default when switching month.

//if (newSelectedDayView == SelectedDayView)
// return false;

Many thanks for this great component!

Jonas

@MaximKorobov
Copy link
Author

Thank you all. I solved it after looked into https://github.com/Clancey/UICalendar fork.

See "oldFrame"-related code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants