How to prevent control size change

Description

How to prevent control size change

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

QT

What LVGL version are you using?

7.2.0

What “control” are you using? Could you provide some more details, please?

For example, the tabview control, when I move the control inside, the size of tabview becomes larger

Try this. tab refers to a tab on the tabview, not the tabview itself.

lv_cont_set_fit(lv_page_get_scrl(tab), LV_FIT_PARENT);

Thank you very much. It’s settled