@eric-emg/symphiq-components 1.2.64 → 1.2.66

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.
@@ -11127,11 +11127,19 @@ class TooltipContainerComponent {
11127
11127
  const tooltipWidth = 384;
11128
11128
  const padding = 10;
11129
11129
  const bounds = this.viewportBounds();
11130
- // Calculate effective viewport width
11131
- const effectiveLeft = bounds?.left ?? 0;
11130
+ // Calculate effective viewport width - use actual window edges
11131
+ const effectiveLeft = 0;
11132
11132
  const effectiveRight = bounds?.right ?? window.innerWidth;
11133
+ console.log('🎯 [shouldCenter calculation]', {
11134
+ position,
11135
+ effectiveLeft,
11136
+ effectiveRight,
11137
+ 'rect.left': rect.left,
11138
+ 'rect.width': rect.width
11139
+ });
11133
11140
  // For 'auto' positioning, always center horizontally
11134
11141
  if (position === 'auto') {
11142
+ console.log('✅ [shouldCenter] auto = true');
11135
11143
  return true;
11136
11144
  }
11137
11145
  if (position === 'top' || position === 'bottom') {
@@ -11139,8 +11147,17 @@ class TooltipContainerComponent {
11139
11147
  const halfWidth = tooltipWidth / 2;
11140
11148
  const wouldGoOffLeft = centerPosition - halfWidth < effectiveLeft + padding;
11141
11149
  const wouldGoOffRight = centerPosition + halfWidth > effectiveRight - padding;
11142
- return !wouldGoOffLeft && !wouldGoOffRight;
11150
+ const result = !wouldGoOffLeft && !wouldGoOffRight;
11151
+ console.log('🎯 [shouldCenter] top/bottom', {
11152
+ centerPosition,
11153
+ halfWidth,
11154
+ wouldGoOffLeft,
11155
+ wouldGoOffRight,
11156
+ result
11157
+ });
11158
+ return result;
11143
11159
  }
11160
+ console.log('❌ [shouldCenter] other position = false');
11144
11161
  return false;
11145
11162
  }, ...(ngDevMode ? [{ debugName: "shouldCenter" }] : []));
11146
11163
  this.containerClass = computed(() => {