This commit is contained in:
Grigory Ulanov 2016-12-07 20:30:39 +03:00
parent 9222c24b26
commit e9d6494182
1 changed files with 2 additions and 2 deletions

View File

@ -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;