-
Notifications
You must be signed in to change notification settings - Fork 131
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
[LVGL] Roller Misalignment When Generating Options from Expression #371
Comments
I can't reproduce this problem. Here is my project: |
I tried with both 8.3 and 9.0 |
Here it is the video rollerError2.mp4 |
I found what is the problem. When INFINITE mode is used then LVGL expands/multiplies given options string N times (where N is equal to LV_ROLLER_INF_PAGES, defined in lv_conf.h, in case of EEZ Studio it is value 7). So, if I give the options string "1\n2\n3", LVGL will keep it as "1\n2\n3\n1\n2\n3\n1\n2\n3\n1\n2\n3\n1\n2\n3\n1\n2\n3\n1\n2\n3". So, when updating options in |
I just committed a fix for this issue in EEZ Studio and also eez-framework. So to test you can build EEZ Studio and get the latest version of eez-framework. Here is the project I used to test: |
BTW, in version 9.0 there is no LV_ROLLER_INF_PAGES, instead required value is calculated depending on the font used. We are handling this version also. |
Thanks @mvladic for sharing your project file. I was struggling with getting the selected index stored into a variable to trigger other things in my UI. I did try using your project as well, but sadly that seems to also not show the roller contents. I also tried just using a roller with my string array - without any variable selected in "Specific" under properties - in this case the contents of the roller show on the display. Another test I did was to use "Literal" for roller options and then use an assignable variable to get the index of the roller to trigger the panels to show or hide. All seems to work in EEZ Studio's simulation, but the panels don't change on the actual display. Anything I am missing? |
You need to call |
Well, I think figured out what I was missing. None of my variable definitions in EEZ Studio were exported the actual code. So I am now trying to manually define it using this documentation: https://github.com/eez-open/native-interface-lvgl-with-flow |
Describe the bug
The roller jumps out when trying to select an option. It only happens when the options are generated from an expression. It is an attached video which shows the bug behavior
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The roller should work smoothly to select the options available.
Screenshots

rollerError.mp4
Desktop :
Additional context
The text was updated successfully, but these errors were encountered: