@libs-ui/components-table 0.2.266 → 0.2.267
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.
- package/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/table.component.mjs +7 -7
- package/fesm2022/libs-ui-components-table.mjs +6 -6
- package/fesm2022/libs-ui-components-table.mjs.map +1 -1
- package/interfaces/function-control-event.interface.d.ts +1 -1
- package/package.json +25 -25
|
@@ -673,7 +673,7 @@ class LibsUiComponentsTableComponent {
|
|
|
673
673
|
return '-1';
|
|
674
674
|
}
|
|
675
675
|
onSortSuccess(scrollLeft) {
|
|
676
|
-
this.resetScroll(scrollLeft);
|
|
676
|
+
this.resetScroll(scrollLeft, 0);
|
|
677
677
|
this.loading.set(false);
|
|
678
678
|
this.outLoading.emit(this.loading());
|
|
679
679
|
}
|
|
@@ -791,16 +791,16 @@ class LibsUiComponentsTableComponent {
|
|
|
791
791
|
e.stopPropagation();
|
|
792
792
|
this.loadMore();
|
|
793
793
|
}
|
|
794
|
-
resetScroll(
|
|
794
|
+
resetScroll(scrollPositionLeft, scrollPositionTop) {
|
|
795
795
|
if (this.headerElementRef()) {
|
|
796
|
-
this.headerElementRef().nativeElement.scrollLeft =
|
|
796
|
+
this.headerElementRef().nativeElement.scrollLeft = scrollPositionLeft || 0;
|
|
797
797
|
}
|
|
798
798
|
if (this.BodyElement) {
|
|
799
|
-
this.BodyElement.scrollTop =
|
|
800
|
-
this.BodyElement.scrollLeft =
|
|
799
|
+
this.BodyElement.scrollTop = scrollPositionTop || 0;
|
|
800
|
+
this.BodyElement.scrollLeft = scrollPositionLeft || 0;
|
|
801
801
|
}
|
|
802
802
|
if (this.footerElementRef()) {
|
|
803
|
-
this.footerElementRef().nativeElement.scrollLeft =
|
|
803
|
+
this.footerElementRef().nativeElement.scrollLeft = scrollPositionLeft || 0;
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
reset(clearSort) {
|