You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, window is being used to get the boundaries for calculating the correct position of tooltips near the window edges. For example, instead of hiding part of tooltips when they would be rendered outside the window, they are placed correctly inside.
However, there are some cases when you want to set different boundaries than window. Would if be possible for tooltip.js to take an argument that acts as the "bounding box" instead of window?
An example for the current calculation I am talking about can be seen here.
The text was updated successfully, but these errors were encountered:
That would make sense. To keep call to open convenient, it might make sense to specify a box-retrieving callback to the constructor of Tooltip. You could make the second argument be either a string or an options object, in which case the direction is taken from options.direction, and a boundingBox option is also recognized, stored in the object, and later consulted when determining the space in which the tooltip may appear. Want to submit such a PR?
Currently,
window
is being used to get the boundaries for calculating the correct position of tooltips near the window edges. For example, instead of hiding part of tooltips when they would be rendered outside the window, they are placed correctly inside.However, there are some cases when you want to set different boundaries than
window
. Would if be possible for tooltip.js to take an argument that acts as the "bounding box" instead ofwindow
?An example for the current calculation I am talking about can be seen here.
The text was updated successfully, but these errors were encountered: