From 933d67fe5b8596da203c318aa9551aad1c2887e6 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 19 Jan 2022 12:34:13 +0100 Subject: [PATCH] docs(event): tell to not adjust widgets in draw events fixes #3009 --- docs/overview/event.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/overview/event.md b/docs/overview/event.md index da443349d..8813ee7af 100644 --- a/docs/overview/event.md +++ b/docs/overview/event.md @@ -101,6 +101,9 @@ The following event codes exist: - `LV_EVENT_DRAW_PART_BEGIN` Starting to draw a part. The event parameter is `lv_obj_draw_dsc_t *`. Learn more [here](/overview/drawing). - `LV_EVENT_DRAW_PART_END` Finishing to draw a part. The event parameter is `lv_obj_draw_dsc_t *`. Learn more [here](/overview/drawing). +In `LV_EVENT_DRAW_...` events it's not allowed to adjust the widgets' properties. E.g. you can not call `lv_obj_set_width()`. +In other words only `get` functions can be called. + ### Other events - `LV_EVENT_DELETE` Object is being deleted - `LV_EVENT_CHILD_CHANGED` Child was removed/added