@tetacom/ng-components 1.6.24 → 1.6.26
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
|
}
|
|
@@ -4046,7 +4046,7 @@ class NumberPipe {
|
|
|
4046
4046
|
if (value === null || value === undefined || value === '') {
|
|
4047
4047
|
return '';
|
|
4048
4048
|
}
|
|
4049
|
-
if (typeof value === 'string' && isNaN(
|
|
4049
|
+
if (typeof value === 'string' && isNaN(Number(value))) {
|
|
4050
4050
|
return value.toString();
|
|
4051
4051
|
}
|
|
4052
4052
|
if (decimalLength === null) {
|