mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(ime_pinyin): fix the problem that lv_ime_pinyin is not hidden together with the keyboard (#3540)
In fact, the use of lv_ime_pinyin does not need to use the lv_ime_pinyin object itself, so we decided to hide it to avoid some other unnecessary problems.
This commit is contained in:
parent
25f311e465
commit
35d845b360
@ -562,8 +562,7 @@ static void lv_ime_pinyin_constructor(const lv_obj_class_t * class_p, lv_obj_t *
|
||||
lv_memzero(pinyin_ime->py_num, sizeof(pinyin_ime->py_num));
|
||||
lv_memzero(pinyin_ime->py_pos, sizeof(pinyin_ime->py_pos));
|
||||
|
||||
lv_obj_set_size(obj, LV_PCT(100), LV_PCT(55));
|
||||
lv_obj_align(obj, LV_ALIGN_BOTTOM_MID, 0, 0);
|
||||
lv_obj_add_flag(obj, LV_OBJ_FLAG_HIDDEN);
|
||||
|
||||
#if LV_IME_PINYIN_USE_DEFAULT_DICT
|
||||
init_pinyin_dict(obj, lv_ime_pinyin_def_dict);
|
||||
@ -1197,4 +1196,4 @@ static void pinyin_k9_cand_page_proc(lv_obj_t * obj, uint16_t dir)
|
||||
|
||||
#endif /*LV_IME_PINYIN_USE_K9_MODE*/
|
||||
|
||||
#endif /*LV_USE_IME_PINYIN*/
|
||||
#endif /*LV_USE_IME_PINYIN*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user