LVGL with Texas DSP - Keyboard display trouble


Keyboard not fitting the LCD Propoerly. I want to control the size of keyboard on my scree. I can correctly configure the width, however, not the height. LCD is 640x480 (HOR x VER).

What MCU/Processor/Board and compiler are you using?

I am using Texas DSP F28335 with CCS v10

What LVGL version are you using?


What do you want to achieve?

I want to display the keyboard on the screen properly, however, not able to set the button size smaller to that the overall keyboard height get smaller.

What have you tried so far?

I tried adjusting the size of keyboard to lower height, however, the keyboard itself gets clipped. Moreover, the text on the buttons also gets dis-aligned. I have attched screenshots to both results. Only difference is the change in height (vertical resolution)

Code to reproduce

Code snippet 1. With text aligned with buttons

   lv_obj_t * kb = lv_keyboard_create(lv_scr_act());

    lv_obj_align(kb, LV_ALIGN_BOTTOM_MID, 0, 0);
    lv_obj_set_style_base_dir(kb, LV_BASE_DIR_LTR, 0);

    lv_obj_set_size(kb, 640, 380);

Code snippet 2 (Difference). With text dis-aligned with buttons

lv_obj_set_size(kb, 640, 340);

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.
This is result of first code script

This is result of second code script