@annalib/anna-core 20.2.18 → 20.2.20
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.
|
@@ -3788,7 +3788,8 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
// let actualTableHeight = heightLeftForTable - ((heightLeftForTable - headerHeight - rowHeight) % rowHeight);
|
|
3790
3790
|
this.gtDimension.tableHeight = `${actualTableHeight}px`;
|
|
3791
|
-
this.numberOfSkeletonRows = Array(this.maximumRowsWhichCanBeRenderedWithoutScroll).fill(0)
|
|
3791
|
+
this.numberOfSkeletonRows = this.maximumRowsWhichCanBeRenderedWithoutScroll ? Array(this.maximumRowsWhichCanBeRenderedWithoutScroll).fill(0)
|
|
3792
|
+
: Array(5).fill(0);
|
|
3792
3793
|
}
|
|
3793
3794
|
trackByFn(index) {
|
|
3794
3795
|
return index;
|
|
@@ -4112,10 +4113,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4112
4113
|
elementArr.forEach((item) => {
|
|
4113
4114
|
let childDivElements = item.nativeElement.children;
|
|
4114
4115
|
if (childDivElements.length == 2) {
|
|
4115
|
-
let
|
|
4116
|
-
let
|
|
4117
|
-
if (
|
|
4118
|
-
let diff =
|
|
4116
|
+
let firstParagraphOffsetWidth = childDivElements[0]?.children[0]?.offsetWidth ? childDivElements[0]?.children[0]?.offsetWidth : 0;
|
|
4117
|
+
let secondParagraphOffsetWidth = childDivElements[1].children[0]?.offsetWidth ? childDivElements[1].children[0]?.offsetWidth : 0;
|
|
4118
|
+
if (firstParagraphOffsetWidth > secondParagraphOffsetWidth) {
|
|
4119
|
+
let diff = firstParagraphOffsetWidth - secondParagraphOffsetWidth;
|
|
4119
4120
|
if (childDivElements[0].children.length == 2) {
|
|
4120
4121
|
childDivElements[0].children[1].style.marginLeft = 4 + 'px';
|
|
4121
4122
|
}
|
|
@@ -4124,7 +4125,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4124
4125
|
}
|
|
4125
4126
|
}
|
|
4126
4127
|
else {
|
|
4127
|
-
let diff =
|
|
4128
|
+
let diff = secondParagraphOffsetWidth - firstParagraphOffsetWidth;
|
|
4128
4129
|
if (childDivElements[0].children.length == 2) {
|
|
4129
4130
|
childDivElements[0].children[1].style.marginLeft = diff + 4 + 'px';
|
|
4130
4131
|
}
|