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

day circle radius is small #380

Closed
canaksoy opened this issue Aug 8, 2016 · 6 comments
Closed

day circle radius is small #380

canaksoy opened this issue Aug 8, 2016 · 6 comments

Comments

@canaksoy
Copy link

canaksoy commented Aug 8, 2016

when using
adjustsFontSizeToFitContentSize = NO

day circle radius is small. how to fix?

image

@WenchaoD
Copy link
Owner

@canaksoy Can you provide a demo which reproduces this?

@canaksoy
Copy link
Author

Sorry, I cannot provide a demo right now.

It's an universal app, ipad uses splitview. both devices have same sizing problem.

if (IS_IPAD) {
self.calendar = [[FSCalendar alloc] initWithFrame:CGRectMake(0, 0, 320, 180)];
} else {
self.calendar = [[FSCalendar alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, 180)];
}

self.calendar.dataSource = self;
self.calendar.scope = FSCalendarScopeWeek;
self.calendar.delegate = self;
self.calendar.selectedDate = _selectedDate;
self.calendar.firstWeekday = 2;
self.calendar.weekdayHeight = 40;
self.calendar.headerHeight = 40;
self.calendar.appearance.adjustsFontSizeToFitContentSize = NO;
self.calendar.appearance.titleFont = [UIFont systemFontOfSize:16];

@WenchaoD
Copy link
Owner

WenchaoD commented Aug 10, 2016

The solusion is initializing with a height of 300 or higher for the month scope, and adjust new bounding rect in -calendar:boundingRectWillChange:animated: .

@sadihakan
Copy link

what is solution for today with swift ?

@Khushtar786
Copy link

How we can increase the size of the Selected title circle in swift

@goyanimaulik
Copy link

How we can increase the size of the Selected title circle in swift

Hi, @Khushtar786
find any solution? I am also stuck here. Please help me if you solved it.

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

5 participants