Fix resource day view event rendering

fix a couple of edge cases where events were rendering incorrectly in
resource day view. Specifically if you had an event that ended in the
last segment or first segment of the day