How to set spinbox text area height

Description

  • If I do not set the height, the spinbox text area gets automatically about 2 or 3 times the height of the text. My UI does not really allow wasting that much space.
  • If I do set the height of a spinbox, the text is jumping up and down on value change. There are some posts about this behaviour, but only workarounds which seem not to work in v9.
  • Setting spinbox height to LV_CONTENT doesn’t seem to do anything.

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

ESP32/CYD, VScode/Platformio, Arduino

What LVGL version are you using?

9.2.2

What do you want to achieve?

Spinbox with small padding around the text, text not jumping up and down.

  • Is there any way to have just a “normal, small” padding around the text?
  • Ist there a way to address the textarea within the spinbox.
    I found this:
    lv.textarea.__cast__(spinbox) 
    
    repeatedly in posts, but it doesn’t seem to work => Identifier “lv” is undefined

What have you tried so far?

Check forum, but all workarounds I could find are for some older versions and seem not to apply to v9.