From 6e8b769d2c2b26b4db7ac3bf8d04e241622ac0ad Mon Sep 17 00:00:00 2001 From: guoweilkd <35251456+guoweilkd@users.noreply.github.com> Date: Tue, 18 May 2021 10:35:10 +0800 Subject: [PATCH] docs(scroll) fix small problem (#2257) Co-authored-by: guowei15 --- docs/overview/scroll.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/overview/scroll.md b/docs/overview/scroll.md index ea99bc7ea..90286876e 100644 --- a/docs/overview/scroll.md +++ b/docs/overview/scroll.md @@ -64,7 +64,7 @@ Besides managing "normal" scrolling there are many interesting and useful additi ### Scrollable -It's possible to make an object non-scrollable with `lv_obj_add_flag(obj, LV_OBJ_FLAG_SCROLLABLE)`. +It's possible to make an object non-scrollable with `lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE)`. Non-scrollable object can still propagate the scrolling (chain) to the parents. @@ -154,7 +154,7 @@ if(event_code == LV_EVENT_GET_SELF_SIZE) { p->x = 200; //Set or calculate the self width } - if(p->x >= 0) { + if(p->y >= 0) { p->y = 50; //Set or calculate the self height } }