@tetacom/ng-components 1.6.23 → 1.6.25
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.
|
@@ -1772,7 +1772,7 @@ class PositionUtil {
|
|
|
1772
1772
|
rect.minWidth = containerWidth;
|
|
1773
1773
|
}
|
|
1774
1774
|
if (verticalAlign === VerticalAlign.auto) {
|
|
1775
|
-
if (containerPosition.bottom + elementHeight > window.innerHeight &&
|
|
1775
|
+
if (Math.floor(containerPosition.bottom + elementHeight) > window.innerHeight &&
|
|
1776
1776
|
containerPosition.bottom >= window.innerHeight / 2) {
|
|
1777
1777
|
verticalAlign = VerticalAlign.top;
|
|
1778
1778
|
}
|
|
@@ -1781,7 +1781,7 @@ class PositionUtil {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
if (verticalAlign === VerticalAlign.innerAuto) {
|
|
1784
|
-
if (containerPosition.bottom + elementHeight > window.innerHeight &&
|
|
1784
|
+
if (Math.floor(containerPosition.bottom + elementHeight) > window.innerHeight &&
|
|
1785
1785
|
containerPosition.bottom >= window.innerHeight / 2) {
|
|
1786
1786
|
verticalAlign = VerticalAlign.innerTop;
|
|
1787
1787
|
}
|