mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve combobox
This commit is contained in:
parent
d515ca4019
commit
5df24f0831
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
2023/06/12
|
2023/06/12
|
||||||
* 修复非普通窗口在底部时候弹出软键盘导致窗口动画跳变的问题以及软键盘导致窗口平移后切换edit导致画面跳变的问题(感谢智明提供补丁)
|
* 修复非普通窗口在底部时候弹出软键盘导致窗口动画跳变的问题以及软键盘导致窗口平移后切换edit导致画面跳变的问题(感谢智明提供补丁)
|
||||||
|
* 修改 combox 水平方向在窗口外时下拉框没有对齐 combox 的问题(感谢智明提供补丁)
|
||||||
|
|
||||||
2023/06/07
|
2023/06/07
|
||||||
* 修复modeless资源属性名(感谢智明提供补丁)
|
* 修复modeless资源属性名(感谢智明提供补丁)
|
||||||
|
@ -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));
|
memset(p, 0x00, sizeof(point_t));
|
||||||
widget_to_screen(widget, p);
|
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) {
|
if ((p->y + widget->h + popup_h) < wm->h) {
|
||||||
p->y += widget->h;
|
p->y += widget->h;
|
||||||
} else if (p->y >= popup_h) {
|
} else if (p->y >= popup_h) {
|
||||||
|
Loading…
Reference in New Issue
Block a user