-
Notifications
You must be signed in to change notification settings - Fork 73
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
Parts of the screens aren't redrawn #156
Comments
I actually think it's a bug in lvgl.
|
Yes, looks like something in LVGL but this is rare. What I noticed is that the button at the button is touching the label. Maybe this works better if there is some more space around the button? Have you tried moving it around? |
No it's not touching the label but it's not just the button, other parts aren't redrawn either (e.g., the spinner when hidden is partially shown, or text in some of the labels, etc.). |
Why not set the flag always? void Show(lv_obj_t * obj, boolean show) { |
Because internally lvgl changes a lot of state even if it's not necessary. e.g if I set (or clear) the hidden flag it invalidates the object, even if it already had (or hadn't) the flag set
See, it doesn't check if the flag changed, it only checks the new value. |
More than a bug report this is a plea for help: I made a simple display here using an esp32-2432S028R board.
It's an mqtt client that changes the text and color of some labels and/or shows/hides elements based on the topics received. It also switches betweeen a normal screen and an error screen.
Sometimes parts of the screen aren't refreshed, if I periodically invalidate the screen the issue is "fixed" but it slows everything down considerably.
This is the first time I use lvgl, squareline studio and this library, so maybe I'm missing something.
In the video the "Reset" button is shown based on a topic, the text of the label "E" depends on the same topic, the "17" and the scrolling label depend on a different topic. When I set the topics to 0 the labels text is empy and the button is hidden, however, as you can see, the texts take a while to disappear while the button stays there (but it's actually hidden since I cannot click on it).
trumadisplay.mp4
other times when I hide a spinner, parts of the spinner are still shown.
The text was updated successfully, but these errors were encountered: