improve combobox

This commit is contained in:
lixianjing 2023-06-12 17:40:11 +08:00
parent d515ca4019
commit 5df24f0831
2 changed files with 1 additions and 4 deletions

View File

@ -2,6 +2,7 @@
2023/06/12
* 修复非普通窗口在底部时候弹出软键盘导致窗口动画跳变的问题以及软键盘导致窗口平移后切换edit导致画面跳变的问题(感谢智明提供补丁)
* 修改 combox 水平方向在窗口外时下拉框没有对齐 combox 的问题(感谢智明提供补丁)
2023/06/07
* 修复modeless资源属性名(感谢智明提供补丁)

View File

@ -631,10 +631,6 @@ ret_t combo_box_combobox_popup_calc_position(widget_t* widget, wh_t popup_w, wh_
memset(p, 0x00, sizeof(point_t));
widget_to_screen(widget, p);
if ((p->x + popup_w) >= wm->w) {
p->x = wm->w - popup_w;
}
if ((p->y + widget->h + popup_h) < wm->h) {
p->y += widget->h;
} else if (p->y >= popup_h) {