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

Space between month tag and days, after touching the calendar the days move up to it's right place #485

Closed
omerb44 opened this issue Nov 17, 2016 · 3 comments

Comments

@omerb44
Copy link

omerb44 commented Nov 17, 2016

FSCalendar version 2.5.1
Starting my app there is a big space between the month tag and the days (displayed wrong). After touching the calendar the days move up and it's displayed right.
simulator screen shot 16 11 2016 23 03 28
simulator screen shot 16 11 2016 23 03 33

@omerb44 omerb44 changed the title FSCalendar version 2.5.1 Calendar is settled Nov 17, 2016
@omerb44 omerb44 changed the title Calendar is settled Space between month tag and days, after touching the calendar the days move up to it's right place Nov 17, 2016
@WenchaoD
Copy link
Owner

It's a behavior for adjusting scrollview inset of UIViewController. FSCalendar has tried to resist this but it seems to fail in some cases. To achieve a quick fix, just set

self.automaticallyAdjustsScrollViewInsets = NO;

in your ViewController.

BTW, can you share a demo for this so that I can fix it inside?

@omerb44
Copy link
Author

omerb44 commented Nov 17, 2016

Setting the self.automaticallyAdjustsSCrollViewInsets = false helped fixing the "first touch"-problem. But now the layout is messed up. Or am I using wrong preferences?
simulator screen shot 17 11 2016 15 23 22

You can also download the project:
https://github.com/radyabo/cmpe137projectmanager/tree/OemerBranch

@WenchaoD
Copy link
Owner

@radyabo Try follow these steps.

  1. The property automaticallyAdjustsScrollViewInsets of the TabBarController should also be turned off.
  2. Don't change the edgeInsets(.top) of each tableView in each child view controller of TabBarController.

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

2 participants