Skip to content

Commit 693231d

Browse files
committed
A small bug fixed
1 parent f31bb6e commit 693231d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1.1.3
1+
VERSION_NAME=1.1.4
22
GROUP=com.github.alamkanak
33

44
POM_DESCRIPTION=Dissect layout traversals on Android.

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,11 @@ private void drawEvents(Calendar date, float startFromPixel, Canvas canvas) {
465465

466466
// Calculate left and right.
467467
float left = startFromPixel + mEventRects.get(i).left * mWidthPerDay;
468-
if (left != startFromPixel)
468+
if (left < startFromPixel)
469469
left += mOverlappingEventGap;
470470
float originalLeft = left;
471471
float right = left + mEventRects.get(i).width * mWidthPerDay;
472-
if (right != startFromPixel + mWidthPerDay)
472+
if (right < startFromPixel + mWidthPerDay)
473473
right -= mOverlappingEventGap;
474474
if (left < mHeaderColumnWidth) left = mHeaderColumnWidth;
475475

0 commit comments

Comments
 (0)