Skip to content

Commit

Permalink
Removed system outs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 27, 2022
1 parent f1ac638 commit e4df1c7
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,10 @@ public void scrollToTime(LocalTime time) {
double y = ViewHelper.getTimeLocation(dayView, time, true);
Insets insets = getInsets();

System.out.println("y: " + y);
System.out.println("t: " + dayView.getTranslateY());
// only scroll if the given time is not in the visible range
if (y < Math.abs(dayView.getTranslateY()) || y > Math.abs(dayView.getTranslateY()) + getHeight()) {
System.out.println("not visible");
// place the given time at one third of the visible height
dayView.setTranslateY(Math.min(0, Math.max(-y + getHeight() / 3, getMaxTranslateY(insets))));
} else {
System.out.println("visible");
}
}

Expand Down

0 comments on commit e4df1c7

Please sign in to comment.