Skip to content

Commit

Permalink
fix(obj_pos) save x,y even if the object is on a layout
Browse files Browse the repository at this point in the history
The set values will be ignored later, but they needs to be saved
in case the layout is removed from the parent
  • Loading branch information
kisvegabor committed Oct 20, 2021
1 parent 91a0d3b commit a9b660c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/lv_obj_pos.c
Original file line number Diff line number Diff line change
@@ -51,9 +51,6 @@ void lv_obj_set_pos(lv_obj_t * obj, lv_coord_t x, lv_coord_t y)
void lv_obj_set_x(lv_obj_t * obj, lv_coord_t x)
{
LV_ASSERT_OBJ(obj, MY_CLASS);
if(lv_obj_is_layout_positioned(obj)) {
return;
}

lv_res_t res_x;
lv_style_value_t v_x;
@@ -67,9 +64,6 @@ void lv_obj_set_x(lv_obj_t * obj, lv_coord_t x)

void lv_obj_set_y(lv_obj_t * obj, lv_coord_t y)
{
if(lv_obj_is_layout_positioned(obj)) {
return;
}
LV_ASSERT_OBJ(obj, MY_CLASS);

lv_res_t res_y;

0 comments on commit a9b660c

Please sign in to comment.