aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-07-27 23:38:25 +0800
committerMilan Crha <mcrha@redhat.com>2009-07-27 23:38:25 +0800
commit19beb5336f272d950a61b231c6418978844348a2 (patch)
tree3f8467e1e8b8dfd14164998dd04494cc5318985a /calendar/gui/e-day-view.c
parente3cef9b96f175370c92f993af15a766a0818abd2 (diff)
downloadgsoc2013-evolution-19beb5336f272d950a61b231c6418978844348a2.tar.gz
gsoc2013-evolution-19beb5336f272d950a61b231c6418978844348a2.tar.zst
gsoc2013-evolution-19beb5336f272d950a61b231c6418978844348a2.zip
Bug #575581 - All Day Events Should Not Depend On Calendar Scrolling
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 614e7b7d87..8cc0405381 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6684,9 +6684,11 @@ e_day_view_get_long_event_position (EDayView *day_view,
}
*item_x = day_view->day_offsets[*start_day] + E_DAY_VIEW_BAR_WIDTH;
- *item_w = day_view->day_offsets[*end_day + 1] - *item_x
- - E_DAY_VIEW_GAP_WIDTH;
- *item_w = MAX (*item_w, 0);
+ if (day_view->days_shown == 1)
+ *item_w = day_view->top_canvas->allocation.width;
+ else
+ *item_w = day_view->day_offsets[*end_day + 1];
+ *item_w = MAX (*item_w - *item_x - E_DAY_VIEW_GAP_WIDTH, 0);
*item_y = (event->start_row_or_col) * day_view->top_row_height;
*item_h = day_view->top_row_height - E_DAY_VIEW_TOP_CANVAS_Y_GAP;
return TRUE;