The position of the tooltip in 3.3.0 changed from absolute to fixed
https://github.com/bokeh/bokeh/pull/13355/commits/8a1327374a72d3f113d4a6bcefb6da0eb8fa3bd9
I used to position my tooltip on the right of the figure (showing the value of a crosshair) by adjusting the left parameter of a customised tooltip
<span">$y{yFormat}
:host{{
–tooltip-arrow-color: black;
–tooltip-arrow-half-height: 0px;
–tooltip-arrow-width: 0px;
–tooltip-color: {background_fill_color};
–tooltip-text: {text_color};
font-size: 1em;
margin : 0px;
border : 0px;
padding : 0px;
opacity: 1;
left : {p.width}px !important;
}}
div.bk-tooltip-content > div > div:not(:first-child) {{
display: none !important;
}}
when inner_width was changed:
p.on_change(‘inner_width’, update_hover_y)
the issue is that now that the position is fixed, if my figure is in a plotgrid, not top left of it, the position is incorrect.
Is there a way to know the fixed position of the figure (left and top) within the page, so i can update my toolltip using something like
p.on_change(‘left_position’, update_hover_y)
thanks
vincent