johnvuko/JTCalendar

How to change JTCalendarDayView height

y0unghe opened this issue · 2 comments

I am trying to make the JTCalendarDayView height a little bigger. I have tried to change it inside calendarBuildDayView, but it's not working.

- (UIView<JTCalendarDay> *)calendarBuildDayView:(JTCalendarManager *)calendar {
    CustomCalendarDayView *view = [[CustomCalendarDayView alloc] init];
    CGRect bounds = view.bounds;
    bounds.size.height = 90;
    view.bounds = bounds;
    return view;
}

Hi,
yes you cannot do that, the size of this view is set by JTCalendarWeekView and the size of JTCalendarWeekView is set by JTCalendarPageView.
Currently, it takes the maximum width and height available.
So if you want to make the view bigger than that you have to override layoutSubviews in JTCalendarWeekView.

@jonathantribouharet Thanks. I just figured out, I made the JTHorizontalCalendarView height bigger, and the day view is taking the maximum height.