From 68d820b2f7a8a5eb95b904cdf15f5b137d0d0f77 Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Tue, 28 Jul 2026 08:05:17 -0400 Subject: [PATCH] Revert "views/month-view: Remove offset" For a while, we have been setting child visibility to false, which hid the horizontal line separators. However, I started scrolling in the month view today and came to realize that they were disappearing sporadically when scrolling upwards. This happens because we use the `box-shadow` CSS property to apply the box shadow a pixel above the month view row, which keeps it visible in the view even when the month view row itself is no longer in the page. Adding a pixel fixes that. This reverts commit f4702dde1f83a01d7f87d5d5a64cc7832ed9dacf. --- src/gui/views/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/gcal-month-view.c b/src/gui/views/gcal-month-view.c index cc912071..70ab5deb 100644 --- a/src/gui/views/gcal-month-view.c +++ b/src/gui/views/gcal-month-view.c @@ -1657,7 +1657,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; + 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));