1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix lv_align_y/mid_y to align y and not x (#1792)

This commit is contained in:
liebman 2020-09-14 03:44:28 -07:00 committed by GitHub
parent 81ec2d1b10
commit 96e0de063a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -984,7 +984,7 @@ void lv_obj_align_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_
LV_ASSERT_OBJ(base, LV_OBJX_NAME);
obj_align_core(obj, base, align, true, false, 0, y_ofs);
obj_align_core(obj, base, align, false, true, 0, y_ofs);
}
/**
@ -1058,7 +1058,7 @@ void lv_obj_align_mid_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align,
LV_ASSERT_OBJ(base, LV_OBJX_NAME);
obj_align_mid_core(obj, base, align, true, false, 0, y_ofs);
obj_align_mid_core(obj, base, align, false, true, 0, y_ofs);
}
/**