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:
parent
81ec2d1b10
commit
96e0de063a
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user