@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.
@@ -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(scrollPosition) {
794
+ resetScroll(scrollPositionLeft, scrollPositionTop) {
795
795
  if (this.headerElementRef()) {
796
- this.headerElementRef().nativeElement.scrollLeft = scrollPosition || 0;
796
+ this.headerElementRef().nativeElement.scrollLeft = scrollPositionLeft || 0;
797
797
  }
798
798
  if (this.BodyElement) {
799
- this.BodyElement.scrollTop = scrollPosition || 0;
800
- this.BodyElement.scrollLeft = scrollPosition || 0;
799
+ this.BodyElement.scrollTop = scrollPositionTop || 0;
800
+ this.BodyElement.scrollLeft = scrollPositionLeft || 0;
801
801
  }
802
802
  if (this.footerElementRef()) {
803
- this.footerElementRef().nativeElement.scrollLeft = scrollPosition || 0;
803
+ this.footerElementRef().nativeElement.scrollLeft = scrollPositionLeft || 0;
804
804
  }
805
805
  }
806
806
  reset(clearSort) {