100askTeam / lv_lib_100ask

lv_lib_100ask is a reference for various out of the box schemes based on lvgl library or an enhanced interface for various components of lvgl library.
MIT License
90 stars 26 forks source link

calc_ta_input height #3

Open mignon-ne opened 1 year ago

mignon-ne commented 1 year ago

Seem conflict of set height. lv_obj_set_size(calc->ta_input, LV_PCT(100), LV_PCT(5)); lv_textarea_set_one_line(calc->ta_input, true);

So, the height will not be 5% but fix to one line height.

YobeZhou commented 1 year ago

There is indeed a problem with writing this way, and I will change it to something similar to this:

lv_textarea_set_one_line(calc->ta_input, true); lv_obj_set_width(calc->ta_input, LV_PCT(100));