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

绘制MonthView的时候,由于传递的x,y是int,导致有偏差 #819

Open
yueyufan opened this issue Sep 13, 2022 · 0 comments
Open

Comments

@yueyufan
Copy link

image
mItemWidth是宽度 / 7 得到的int值,会丢掉小数,绘制时用j * mItemWidth计算x是有可能会越差越多的。比如整体宽度1070,1070 / 7 = 152,152 * 7 = 1064,会差6px

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

1 participant