Skip to content

Commit e570d54

Browse files
committed
Merge pull request #116 from lolobosse/bug/115-Appmt_Not_Displayed
Fixed the bug #115
2 parents 39fd130 + d188443 commit e570d54

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,11 @@ else if (!isEventsCollide(eventRect.event, column.get(column.size()-1).event)) {
851851

852852

853853
// Calculate left and right position for all the events.
854-
int maxRowCount = columns.get(0).size();
854+
// Get the maxRowCount by looking in all columns.
855+
int maxRowCount = 0;
856+
for (List<EventRect> column : columns){
857+
maxRowCount = Math.max(maxRowCount, column.size());
858+
}
855859
for (int i = 0; i < maxRowCount; i++) {
856860
// Set the left and right values of the event.
857861
float j = 0;

0 commit comments

Comments
 (0)