Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
lv_obj_set_style_radius(T1, LV_RADIUS_CIRCLE, 0);
lv_obj_set_size(T1, 45, 45);
The above works, but if I change size to anything else like 40,40, I see inside
my circle (which has white background) a vertical, and horizontal scroll bars.
Why am I getting these scroll bars ?
If what I am doing is correct then maybe my question should be:
How do I get rid of auto scrolling in objects.
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
None
Scrollbars appear when a child object is larger than its parent object. They can be disabled for an object by using: lv_obj_set_scrollbar_mode(lvgl_object_name, LV_SCROLLBAR_MODE_OFF);
Yes, this works.
However, it appears that LV_SCROLLBAR_MODE_OFF only makes scrollbars disappear, but does NOT stop object from scrolling (for example by hand).
Here I created a window object, and near the bottom edge I placed a label. I used LV_SCROLLBAR_MODE_OFF, and yes, no scrollbars visible, but I can swipe the window up/down with my finger on touch screen: