minor grid fix
This commit is contained in:
@@ -727,7 +727,6 @@ void lv_obj_clear_flag(lv_obj_t * obj, lv_obj_flag_t f)
|
|||||||
obj->flags &= (~f);
|
obj->flags &= (~f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the state (fully overwrite) of an object.
|
* Set the state (fully overwrite) of an object.
|
||||||
* If specified in the styles a transition animation will be started
|
* If specified in the styles a transition animation will be started
|
||||||
|
|||||||
@@ -62,16 +62,14 @@ void lv_obj_set_pos(lv_obj_t * obj, lv_coord_t x, lv_coord_t y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*If not grid item but has grid position set the position to 0*/
|
/*If not grid item but has grid position set the position to 0*/
|
||||||
// if(!gi) {
|
if(!gi) {
|
||||||
// if(_GRID_IS_CELL(x)) {
|
if(_GRID_IS_CELL(x)) {
|
||||||
// obj->x_set = 0;
|
x = 0;
|
||||||
// x = 0;
|
}
|
||||||
// }
|
if(_GRID_IS_CELL(y)) {
|
||||||
// if(_GRID_IS_CELL(y)) {
|
y = 0;
|
||||||
// obj->y_set = 0;
|
}
|
||||||
// y = 0;
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
/*If the object is on a grid item let the grid to position it. */
|
/*If the object is on a grid item let the grid to position it. */
|
||||||
if(gi) {
|
if(gi) {
|
||||||
|
|||||||
Reference in New Issue
Block a user