Utilizing Bootstrap popover within a gantt chart, I am dynamically adjusting the position of the popover based on mouse hover.
popover.css('left', event.pageX + 'px');
popover.css('top', event.pageY+ 'px')
However, the popover disappears at the right extremes when text wrap and scroll are removed from the page. Trying to address this issue specifically on the right edges, I attempted setting right
instead of left
.
popover.css('right', event.pageX + 'px');
popover.css('top', event.pageY+ 'px');
Unfortunately, this solution did not work as intended. Can anyone provide guidance on this? If my approach is incorrect, are there alternative methods to achieve the desired result?