atr-components 0.2.208 → 0.2.209
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.
|
@@ -2875,9 +2875,10 @@ class AtrTableComponent {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
ngAfterViewInit() {
|
|
2877
2877
|
setTimeout(() => {
|
|
2878
|
-
|
|
2878
|
+
let scrollSize = JSON.parse(JSON.stringify(this.scrollSize));
|
|
2879
|
+
scrollSize.y = this.tableContent.nativeElement.offsetHeight - 100 + "px";
|
|
2879
2880
|
if (this.isHideTable) {
|
|
2880
|
-
|
|
2881
|
+
scrollSize.y = this.tableContent.nativeElement.offsetHeight - 60 + "px";
|
|
2881
2882
|
}
|
|
2882
2883
|
let width = 0;
|
|
2883
2884
|
if (this.queryOpts && this.queryOpts.tables) {
|
|
@@ -2889,10 +2890,11 @@ class AtrTableComponent {
|
|
|
2889
2890
|
}
|
|
2890
2891
|
let w = this.tableContent.nativeElement.offsetWidth - 22;
|
|
2891
2892
|
if (width > w)
|
|
2892
|
-
|
|
2893
|
+
scrollSize.x = width + "px";
|
|
2893
2894
|
else
|
|
2894
|
-
|
|
2895
|
-
console.log(
|
|
2895
|
+
scrollSize.x = this.tableContent.nativeElement.offsetWidth - 22 + "px";
|
|
2896
|
+
console.log(scrollSize);
|
|
2897
|
+
this.scrollSize = scrollSize;
|
|
2896
2898
|
this.isAllLoad = true;
|
|
2897
2899
|
this.cd.detectChanges();
|
|
2898
2900
|
}, 500);
|