From e9d649418201a2bd11ed92ba8946e99a70efce95 Mon Sep 17 00:00:00 2001 From: Grigory Ulanov Date: Wed, 7 Dec 2016 20:30:39 +0300 Subject: [PATCH] fixes --- TUCalendar/TUCalendar/Views/TUCalendarDayView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TUCalendar/TUCalendar/Views/TUCalendarDayView.m b/TUCalendar/TUCalendar/Views/TUCalendarDayView.m index 4d05e0b..17f109c 100644 --- a/TUCalendar/TUCalendar/Views/TUCalendarDayView.m +++ b/TUCalendar/TUCalendar/Views/TUCalendarDayView.m @@ -188,8 +188,8 @@ static CGFloat const kTodayLabelHeight = 12.f; [self updateBackgroundState]; - BOOL isLeftBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionLeftFull) && !state.isInvisibleDay; - BOOL isRightBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionRightFull) && !state.isInvisibleDay; + BOOL isLeftBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionLeftFull); + BOOL isRightBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionRightFull); BOOL isRangingText = isLeftBackgroundViewShown || isRightBackgroundViewShown || [self isTextRangeState]; self.leftBackgroundView.hidden = !isLeftBackgroundViewShown;