Skip to content

Commit

Permalink
Do not add right padding to calendar label's x1 coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Aug 5, 2019
1 parent 7f653e6 commit 5c735c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lv_objx/lv_calendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ static void draw_days(lv_obj_t * calendar, const lv_area_t * mask)
}

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;

/*Draw the "today box"*/
Expand Down

0 comments on commit 5c735c0

Please sign in to comment.