@skyux/core 12.32.1 → 12.34.0

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.
@@ -737,28 +737,17 @@ class SkyAffixer {
737
737
  const baseRect = baseElement.getBoundingClientRect();
738
738
  const parent = this.#getAutoFitContextParent();
739
739
  let parentOffset;
740
- if (this.#config.autoFitContext === SkyAffixAutoFitContext.OverflowParent) {
741
- if (this.#config.autoFitOverflowOffset) {
742
- // When the config contains a specific offset.
743
- parentOffset = getElementOffset(parent, this.#config.autoFitOverflowOffset);
744
- }
745
- else if (isOffsetFullyVisibleWithinParent(this.#viewportRuler, parent, baseRect)) {
746
- // When the base element is fully visible within the parent, aim for the visible portion of the parent element.
747
- parentOffset = getVisibleRectForElement(this.#viewportRuler, parent);
748
- }
749
- else {
750
- // Anywhere in the parent element.
751
- parentOffset = getOuterRect(parent);
752
- }
740
+ if (this.#config.autoFitOverflowOffset) {
741
+ // When the config contains a specific offset.
742
+ parentOffset = getElementOffset(parent, this.#config.autoFitOverflowOffset);
743
+ }
744
+ else if (isOffsetFullyVisibleWithinParent(this.#viewportRuler, parent, baseRect)) {
745
+ // When the base element is fully visible within the parent, aim for the visible portion of the parent element.
746
+ parentOffset = getVisibleRectForElement(this.#viewportRuler, parent);
753
747
  }
754
748
  else {
755
- const viewportRect = this.#viewportRuler.getViewportRect();
756
- parentOffset = {
757
- top: -viewportRect.top,
758
- left: -viewportRect.left,
759
- bottom: viewportRect.height + viewportRect.top,
760
- right: viewportRect.width + viewportRect.left,
761
- };
749
+ // Anywhere in the parent element.
750
+ parentOffset = getOuterRect(parent);
762
751
  }
763
752
  // A pixel value representing the leeway between the edge of the overflow parent and the edge
764
753
  // of the base element before it disappears from view.
@@ -4749,7 +4738,7 @@ class Version {
4749
4738
  /**
4750
4739
  * Represents the version of @skyux/core.
4751
4740
  */
4752
- const VERSION = new Version('12.32.1');
4741
+ const VERSION = new Version('12.34.0');
4753
4742
 
4754
4743
  /**
4755
4744
  * Generated bundle index. Do not edit.