From be9ac377cc682c1b2d2f2ea48e3af557a1771e9a Mon Sep 17 00:00:00 2001
From: Ramesh Kumar <ramesh.p@matriotsolutions.com>
Date: Mon, 19 Sep 2022 18:55:21 +0530
Subject: [PATCH] TMSS-1928: Current timeline and cursor line values are shown
 always

---
 .../tmss_webapp/src/components/Timeline/CalendarTimeline.js  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/src/components/Timeline/CalendarTimeline.js b/SAS/TMSS/frontend/tmss_webapp/src/components/Timeline/CalendarTimeline.js
index 389bcbf336e..72210742370 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/components/Timeline/CalendarTimeline.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/components/Timeline/CalendarTimeline.js
@@ -724,7 +724,8 @@ export class CalendarTimeline extends Component {
         cursorTextStyles.height = `${this.state.lineHeight - 2}px`;
         cursorTextStyles.position = styles.position;
         cursorTextStyles.left = styles.left-(this.state.lineHeight*2);
-        cursorTextStyles.top = '2px';
+        let headerOffsetTop = document.getElementsByClassName("rct-header-root")[0].offsetTop;
+        cursorTextStyles.top = (headerOffsetTop?headerOffsetTop-55:2) + 'px';
         cursorTextStyles.paddingLeft = "5px";
         cursorTextStyles.textAlign = "center";
         styles.backgroundColor = '#c40719';
@@ -1740,7 +1741,7 @@ export class CalendarTimeline extends Component {
                                     const customStyles = {
                                     ...styles,
                                     backgroundColor: 'green',
-                                    width: '2px'
+                                    width: '2px', zIndex: 998
                                     }
                                     return <div style={customStyles} />
                                 }}
-- 
GitLab