From 6194c15b91ea3b0f12dad7962b21d7deb02e0e59 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 3 Apr 2023 14:41:54 -0600 Subject: [PATCH] Calendar: fix planner's vertical bar time cursor did not follow mouse --- calendar/js/et2_widget_planner.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/calendar/js/et2_widget_planner.ts b/calendar/js/et2_widget_planner.ts index ff443b05ca..c3d7d3c2a8 100644 --- a/calendar/js/et2_widget_planner.ts +++ b/calendar/js/et2_widget_planner.ts @@ -296,12 +296,8 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta return; } // Position bar by mouse - planner.vertical_bar.position({ - my: 'right-1', - of: event, - collision: 'fit' - }); - planner.vertical_bar.css('top','0px'); + planner.vertical_bar.css("left", (event.clientX - planner.grid.offset().left + 120) + "px"); + planner.vertical_bar.css('top', '0px'); // Get time at mouse if(jQuery(event.target).closest('.calendar_eventRows').length == 0)