views/month-view: Allocate more for grid height

This allocates two extra pixels for the grid's height to make
the cell borders hide below the footer.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/604>
This commit is contained in:
Hari Rana
2025-07-08 14:08:37 +00:00
committed by Marge Bot
parent abcce2a1d5
commit a0b530298a
+1 -1
View File
@@ -1477,7 +1477,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
gtk_widget_measure (self->header, GTK_ORIENTATION_VERTICAL, width, &header_height, NULL, NULL, NULL);
gtk_widget_allocate (self->header, width, header_height, baseline, NULL);
grid_height = height - header_height - 1;
grid_height = height - header_height + 1;
row_height = grid_height / (gdouble) N_ROWS_PER_PAGE;
row_scroll_offset = self->row_offset * row_height;
y_offset = header_height - row_scroll_offset - (grid_height * ((N_PAGES - 1) / 2.0));