-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Bar doesn't display anything if value is under 1.0 and radius not effecting bar #590
Comments
Ok, just figured that I need to set "radius10" for radius. At least that isn't a bug. |
|
I don't understand. How can I use floating point number for amperage and can't use it for power? |
You shouldn't use floating point in any case, the result is undefined. Use Round to make the number an integer so it is interpreted correctly. If you want more then 5 steps for the Amperage, you can multiply by a fixed number (e.g. 10 or 20) frist before rounding the result. Also adjust the max in that case by the same factor. |
So wait, if I got it right, what you are telling me is that I shouldn't have any .something values? |
23.4 is not an integer, 23 is... LVGL only support integer values. |
aaaaa, I understand now. Thanks! |
No problem, you're welcome. |
We still have the problem of radius not affecting the bar in bar. Only bar background gets changed. |
Show your jsonl and screenshot please. Did you use |
Is this still an issue? Please let me know. |
Describe the bug
If I make a "bar" object and set it min:0, max:5 and have a value of 0.00<>0.99, nothing is displayed. 1.0> already jumps to the right part of the bar. Also, when "radius" is applied to "bar", only it's background gets the corners, value bar stays with pill shape.
To Reproduce
Expected behavior
Bar to display the proper value even for values under 1.0 and value bar to adopt the shape of background.
Screenshots or video
The text was updated successfully, but these errors were encountered: