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.
This commit is contained in:
Georges Basile Stavracas Neto
2016-02-18 02:08:16 -02:00
parent 6775ffd7b3
commit 47bf180809
+1 -1
View File
@@ -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;