mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
feat: scroll schedule cursor into view
This commit is contained in:
committed by
Rainer Killinger
parent
42e2f3a0cb
commit
bc4c3d78db
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 StApps
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -15,6 +15,7 @@
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {HoursRange} from '../schema/schema';
|
||||
import moment from 'moment';
|
||||
import {getScheduleCursorOffset} from './schedule-cursor-offset';
|
||||
|
||||
/**
|
||||
* Component that displays the schedule
|
||||
@@ -47,6 +48,8 @@ export class ScheduleCursorComponent implements OnInit {
|
||||
*/
|
||||
@Input() readonly scale: number;
|
||||
|
||||
getScheduleCursorOffset = getScheduleCursorOffset;
|
||||
|
||||
/**
|
||||
* Get a floating point time 0..24
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user