Calculates the horizontal adjustment needed to best fit an element within a set of scroll bounds. Returns the number
of pixels the element should be adjusted by.
Meant for elements that are positioned relative to a container. For example a tooltip or button confirmation box.
Calculates the horizontal adjustment needed to best fit an element within a set of scroll bounds. Returns the number of pixels the element should be adjusted by.
Meant for elements that are positioned relative to a container. For example a tooltip or button confirmation box.