In the past, Bootstrap 3 offered functionality to handle data-placement="left auto", which would display the tip on the left if there was sufficient space, or calculate an automatic placement if not.
However, Bootstrap 4 does not support the use of two placement values. You can only specify either left OR auto.
Are there any suggestions on how to achieve a similar effect in Bootstrap 4? I've been referencing this comment and examining the Bootstrap 3 JavaScript source code, but I'm struggling to determine the 'current height/width' of the tooltip for display. Additionally, I'm unsure about what should be used as the 'viewport' in Bootstrap 4 (assuming it could be the window
object?)