@tetacom/ng-components 1.0.50 → 1.0.51

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.
@@ -1067,6 +1067,12 @@ class PositionUtil {
1067
1067
  const elementHeight = elementPosition.bottom - elementPosition.top;
1068
1068
  const containerWidth = containerPosition.right - containerPosition.left;
1069
1069
  const containerHeight = containerPosition.bottom - containerPosition.top;
1070
+ if (align === Align.auto) {
1071
+ align = Align.left;
1072
+ if (window.innerWidth < containerPosition.left + elementWidth) {
1073
+ align = Align.right;
1074
+ }
1075
+ }
1070
1076
  if (align === Align.left) {
1071
1077
  rect.left = containerPosition.left + margin;
1072
1078
  }