1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Do not add right padding to calendar label's x1 coordinate

This commit is contained in:
Themba Dube 2019-08-05 14:22:37 -04:00
parent 7f653e6924
commit 5c735c0fc8

View File

@ -787,7 +787,7 @@ static void draw_days(lv_obj_t * calendar, const lv_area_t * mask)
} }
label_area.x1 = label_area.x1 =
calendar->coords.x1 + (w * day) / 7 + style_bg->body.padding.left + style_bg->body.padding.right; calendar->coords.x1 + (w * day) / 7 + style_bg->body.padding.left;
label_area.x2 = label_area.x1 + box_w - 1; label_area.x2 = label_area.x1 + box_w - 1;
/*Draw the "today box"*/ /*Draw the "today box"*/