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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user