week-grid: remove unneeded usage of natural-height
As the assignment of display-text, and in turn that of event-widget's height, is taken care of in event-widget, we no longer need to consider natural- height, while assigning height in week-grid. This patch fixes this issue by removing natural-height, and directly assigning the desired value to height. https://bugzilla.gnome.org/show_bug.cgi?id=778070
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
de2578ac54
commit
6cc6e4f7e7
@@ -720,7 +720,7 @@ gcal_week_grid_size_allocate (GtkWidget *widget,
|
|||||||
&margin);
|
&margin);
|
||||||
|
|
||||||
width = column_width / events_at_range - margin.left - margin.right;
|
width = column_width / events_at_range - margin.left - margin.right;
|
||||||
height = MAX ((data->end - data->start) * minutes_height - margin.top - margin.bottom, natural_height);
|
height = (data->end - data->start) * minutes_height - margin.top - margin.bottom;
|
||||||
offset = (width + margin.left + margin.right) * widget_index;
|
offset = (width + margin.left + margin.right) * widget_index;
|
||||||
|
|
||||||
if (ltr)
|
if (ltr)
|
||||||
|
|||||||
Reference in New Issue
Block a user