-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Why set barRect.size.height = bottom - top to be negative? #465
Comments
It could be negative or positive, depending on the specific bar - but you don't have to do any "trick", as all rendering platforms (that I know of, including iOS and Android) take care of negative heights automatically. |
@danielgindi but if I try to use |
Of course it did, you have change its direction. |
Ah I see. Thanks for the lesson! |
:-) |
@danielgindi I was looking into some details about bar chart view today, and I found that the barRect height is negative after calculation, this surprised me a little. Could you explain some details here? Also, where you made the trick to handle the negative height? I don't see you manipulate the matrix.
The text was updated successfully, but these errors were encountered: