Skip to content

Commit 1d94316

Browse files
author
Jens Claes
committed
Merge branch 'getFirstVisibleHour' into quivr-master
2 parents 8f8b73a + d993621 commit 1d94316

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,14 @@ else if (hour > 24)
15091509
invalidate();
15101510
}
15111511

1512+
/**
1513+
* Get the first hour that is visible on the screen.
1514+
* @return The first hour that is visible.
1515+
*/
1516+
public double getFirstVisibleHour(){
1517+
return -mCurrentOrigin.y / mHourHeight;
1518+
}
1519+
15121520

15131521

15141522
/////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)