mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 12:08:16 +08:00
fix mledit tips align(issue #574)
This commit is contained in:
parent
9bc7eeed3a
commit
3f2ec3e308
@ -1,6 +1,9 @@
|
|||||||
# 最新动态
|
# 最新动态
|
||||||
2021/07/08
|
2021/07/08
|
||||||
|
* 修复不必要的警告(感谢兆坤提供补丁)
|
||||||
|
* 导出lcd\_get\_dirty\_rect(感谢智明提供补丁)
|
||||||
* 修复限制最高绘图帧率机制的问题(感谢智明提供补丁)
|
* 修复限制最高绘图帧率机制的问题(感谢智明提供补丁)
|
||||||
|
* 修改mledit输入提示对齐的问题(感谢智明提供补丁)。
|
||||||
|
|
||||||
2021/07/07
|
2021/07/07
|
||||||
* 窗口完全进入后台时不再绘制。
|
* 窗口完全进入后台时不再绘制。
|
||||||
|
@ -594,9 +594,14 @@ static ret_t text_edit_paint_tips_text(text_edit_t* text_edit, canvas_t* c) {
|
|||||||
if (p.total_lines > 1) {
|
if (p.total_lines > 1) {
|
||||||
text_edit_paint_tips_mlines_text(text_edit, c, &p);
|
text_edit_paint_tips_mlines_text(text_edit, c, &p);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
align_h_t align_h = c->text_align_h;
|
||||||
|
align_v_t align_v = c->text_align_v;
|
||||||
rect_t r =
|
rect_t r =
|
||||||
rect_init(layout_info->margin_l, layout_info->margin_t, layout_info->w, layout_info->h);
|
rect_init(layout_info->margin_l, layout_info->margin_t, layout_info->w, layout_info->h);
|
||||||
|
canvas_set_text_align(c, align_h, ALIGN_V_TOP);
|
||||||
canvas_draw_text_in_rect(c, text->str, text->size, &r);
|
canvas_draw_text_in_rect(c, text->str, text->size, &r);
|
||||||
|
canvas_set_text_align(c, align_h, align_v);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rect_t r =
|
rect_t r =
|
||||||
|
Loading…
Reference in New Issue
Block a user