fix keyboard position

This commit is contained in:
lixianjing 2022-06-21 17:41:13 +08:00
parent 7faf86a6a9
commit 905241076f
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* 修复在高亮的对话下切换主题后高亮截图没有刷新的问题(感谢兆坤提供补丁)
* 删除demoui无用代码(感谢兆坤提供补丁)
* 完善demoui(感谢兆坤提供补丁)
* 修复edit弹出软键盘异常问题(感谢兆坤提供补丁)
* 完善fscrit_widget
2022/06/20

View File

@ -289,6 +289,7 @@ static ret_t input_type_open_keyboard(input_method_t* im, const char* keyboard_n
caret_bottom = input_method_default_get_edit_caret_bottom(widget, im->keyboard);
caret_bottom += win_delta_y;
caret_bottom = tk_min(caret_bottom, win->y + win->h);
if (widget_get_prop_bool(im->keyboard, WIDGET_PROP_FLOATING, FALSE)) {
input_type_keyboard_follow_edit(im);
if (im->keyboard->y < p.y) {