dm_get_size is back, move style isolation to lv_obj_create from obj_x
This commit is contained in:
@@ -82,13 +82,8 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
ext->bullet = lv_btn_create(new_cb, copy_ext->bullet);
|
||||
ext->label = lv_label_create(new_cb, copy_ext->label);
|
||||
|
||||
/*Set the style of 'copy' and isolate it if it is necessary*/
|
||||
if(lv_obj_get_style_iso(new_cb) == false) {
|
||||
lv_obj_set_style(new_cb, lv_obj_get_style(copy));
|
||||
} else {
|
||||
lv_obj_set_style(new_cb, lv_obj_get_style(copy));
|
||||
lv_obj_iso_style(new_cb, sizeof(lv_cbs_t));
|
||||
}
|
||||
/*Refresh the style with new signal function*/
|
||||
lv_obj_refr_style(new_cb);
|
||||
}
|
||||
|
||||
lv_obj_align_us(new_cb, NULL, LV_ALIGN_CENTER, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user