dm_get_size is back, move style isolation to lv_obj_create from obj_x
This commit is contained in:
@@ -96,13 +96,8 @@ lv_obj_t * lv_chart_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
ext->vdiv_num = ext_copy->vdiv_num;
|
||||
ext->pnum = ext_copy->pnum;
|
||||
|
||||
/*Set the style of 'copy' and isolate it if it is necessary*/
|
||||
if(lv_obj_get_style_iso(new_chart) == false) {
|
||||
lv_obj_set_style(new_chart, lv_obj_get_style(copy));
|
||||
} else {
|
||||
lv_obj_set_style(new_chart, lv_obj_get_style(copy));
|
||||
lv_obj_iso_style(new_chart, sizeof(lv_charts_t));
|
||||
}
|
||||
/*Refresh the style with new signal function*/
|
||||
lv_obj_refr_style(new_chart);
|
||||
}
|
||||
|
||||
return new_chart;
|
||||
|
||||
Reference in New Issue
Block a user