Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: TT-296 The code was modified with the suggestions in the PR
  • Loading branch information
PieritoAlva95 committed Aug 6, 2021
commit f752b17c22de6ad62f62497f6613cf3ada760816
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ export class CalendarComponent implements OnInit {
}

scrollToCurrentTimeMarker() {
console.log('Si entro');
if (this.calendarView === CalendarView.Week || CalendarView.Day) {
console.log(`Calendar View ${this.calendarView}`);
const minutesSinceStartOfDay = differenceInMinutes(startOfHour(this.currentDate), startOfDay(this.currentDate));
const headerHeight = this.calendarView === CalendarView.Week ? this.DEFAULT_HEADER_HEIGHT : 0;
this.scrollContainer.nativeElement.scrollTop = minutesSinceStartOfDay * this.VARIATION_HEIGHT + headerHeight;
Expand Down