Open mignon-ne opened 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.
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));
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.