@eric-emg/symphiq-components 1.2.80 → 1.2.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11294,6 +11294,8 @@ class TooltipContainerComponent {
|
|
|
11294
11294
|
switch (position) {
|
|
11295
11295
|
case 'top':
|
|
11296
11296
|
case 'bottom': {
|
|
11297
|
+
// rect.left is relative to viewport, so we don't need to adjust for viewportBounds
|
|
11298
|
+
// The tooltip is positioned fixed relative to the viewport too
|
|
11297
11299
|
const centerPosition = rect.left + rect.width / 2;
|
|
11298
11300
|
const halfWidth = tooltipWidth / 2;
|
|
11299
11301
|
// Check if centered tooltip would go off bounds
|