I’m using two image objects to display two identical icons, one on the left side of the screen and one on the right side of the screen. The one on the left side of the screen is displayed fine. However, the one on the right side of the screen only part of it is displayed, roughly the left 5 pixels of every row. No matter where I position the image, this arbitrary cutoff occurs. So if I position the image more to the left, more of it is displayed, and if I position it more to the right, less of it is displayed. What would be causing part of the image to be cut off? Is it because the parent only extends to that boundary? Is there a way to determine the parent size or bounding box?
Code to reproduce
s->usbc_port1_img_object = lv_img_create(lv_scr_act(), NULL); lv_img_set_src(s->usbc_port1_img_object, port1 == USBC_UNPLUGGED ? &usbc_unplugged : port1 == USBC_INACTIVE ? &usbc_inactive : &usbc_active); lv_img_set_auto_size(s->usbc_port1_img_object, true); lv_obj_set_pos(s->usbc_port1_img_object, 75, 25); lv_task_handler();
I’m using lvgl version 7.6.1 with Zephyr v2.7. My screen is 128x32.