[gnome-calendar/wip/gbsneto/improved-style: 1/3] month-view: fix bottom event overflow calc



commit 47bf180809939cd8bb98897abd530b26f6aa9f30
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 18 02:08:16 2016 -0200

    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.

 src/gcal-month-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index f1e6834..ca87a50 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]