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

日历总是显示六行 #4

Open
guozhongxiao opened this issue Sep 6, 2018 · 1 comment
Open

日历总是显示六行 #4

guozhongxiao opened this issue Sep 6, 2018 · 1 comment

Comments

@guozhongxiao
Copy link

问题如图:
image
即使一个月只跨了5个周,仍然显示6周

@sunzunlu
Copy link
Owner

sunzunlu commented Sep 6, 2018

@guozhongxiao 现在默认显示6*7=42个日期格子 ,解决思路:在头部(上个月)和尾部(下个月)计算的时候 ,如果precount>=6或者nextcount>=6,前者取后者日期的数组,后者去前者日期的数组,就可以了。可以现在源码上尝试修改一下。过段时间,解决好了会告诉你。

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