mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix slide view clip bug on web
This commit is contained in:
parent
7a018c81b8
commit
5a5448c850
@ -5,6 +5,7 @@
|
||||
* widget处理RET\_STOP返回值(感谢朝泽提供补丁)。
|
||||
* dragger除POINTER ABORT消息(感谢朝泽提供补丁)。
|
||||
* 修改窗口管理器取整的问题(感谢朝泽提供补丁)。
|
||||
* 修改slide menu在web上裁剪的问题。
|
||||
|
||||
* 2019/04/24
|
||||
* 修改AGGE模式支持APP\_DESKTOP的问题(感谢尧燊提供补丁)
|
||||
|
@ -173,12 +173,15 @@ static ret_t slide_menu_on_paint_children(widget_t* widget, canvas_t* c) {
|
||||
|
||||
clip_r.x += c->ox;
|
||||
clip_r.y += c->oy;
|
||||
|
||||
canvas_get_clip_rect(c, &save_r);
|
||||
r = rect_intersect(&save_r, &clip_r);
|
||||
|
||||
canvas_save(c);
|
||||
canvas_set_clip_rect(c, &r);
|
||||
slide_menu_paint_children(widget, c);
|
||||
canvas_set_clip_rect(c, &save_r);
|
||||
canvas_restore(c);
|
||||
|
||||
slide_menu_paint_mask(widget, c, &clip_r);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user