month-view: fix undershoot for new bottom bar
This adds the same styling as .undershoot-bottom would while scrolling and adjusts the size allocation of month rows, so that the top border of the month row right below the last one is already visible. Link: https://gitlab.gnome.org/GNOME/libadwaita/-/blob/649967044e269a0118ae09a9ff0ecba90cc58300/src/stylesheet/_drawing.scss#L57 Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it> Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/542>
This commit is contained in:
committed by
Marge Bot
parent
7764b4dc0a
commit
c03c501888
@@ -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;
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user