Summary:
If i set place="top", it renders the toolitp in the top position. if the tooltip will not fit above, it automatically renders below. Likewise, if i use place="right", it will position to the left if it is out of the current window dimensions.
But, if i choose place="top" but the content is too wide to fully display in the window, the left side will be rendered off-screen and there is no way for me to see the entire content of the tooltip.
Steps to reproduce:
Expected behavior:
If (right_edge_of_tooltip > window.innerWidth) { place="left"; }
+1
Should be supported since 3.0.7
@wwayne - Is there a way to disable this functionality? To force the tooltip to render in the defined place with no regard to window bounds?
@wwayne @aronhelser I would second @Olliebaba's question. Is there a way to force its position?
A quick fix for this is to give the tooltip a className and set the max-width on it. ie:
<ReactTooltip className='tooltip-width' />
.tooltip-width {
max-width: 95%;
}
@wwayne - Is there a way to disable this functionality? To force the tooltip to render in the defined place with no regard to window bounds?
I have same question. Do you have an idea for this?
Most helpful comment
@wwayne - Is there a way to disable this functionality? To force the tooltip to render in the defined place with no regard to window bounds?