From 47bf180809939cd8bb98897abd530b26f6aa9f30 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 18 Feb 2016 02:08:16 -0200 Subject: [PATCH] month-view: fix bottom event overflow calc We draw a sector of height = bottom_padding * 2 + font_height, but we calculate it wrongly. Fix that by correctly multiplying by 2. --- src/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index f1e68341..ca87a508 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -1064,7 +1064,7 @@ gcal_month_view_size_allocate (GtkWidget *widget, start_grid_y = get_start_grid_y (widget); cell_width = allocation->width / 7.0; cell_height = (allocation->height - start_grid_y) / 6.0; - vertical_cell_space = cell_height - (padding_bottom + font_height); + vertical_cell_space = cell_height - (padding_bottom * 2 + font_height); for (i = 0; i < 42; i++) size_left[i] = vertical_cell_space;