feat(style): store layout and position coordinates as style properties

related to #2152
This commit is contained in:
Gabor Kiss-Vamosi
2021-03-23 20:51:39 +01:00
parent 7cc3ed51bf
commit b7becbbb22
71 changed files with 1247 additions and 882 deletions

View File

@@ -750,13 +750,9 @@ static void lv_label_event_cb(lv_obj_t * obj, lv_event_t e)
lv_label_revert_dots(obj);
lv_label_refr_text(obj);
}
else if(e == LV_EVENT_COORD_CHANGED) {
void * param = lv_event_get_param();
if(lv_area_get_width(&obj->coords) != lv_area_get_width(param) ||
lv_area_get_height(&obj->coords) != lv_area_get_height(param)) {
lv_label_revert_dots(obj);
lv_label_refr_text(obj);
}
else if(e == LV_EVENT_SIZE_CHANGED) {
lv_label_revert_dots(obj);
lv_label_refr_text(obj);
}
else if(e == LV_EVENT_BASE_DIR_CHANGED) {
#if LV_USE_BIDI