Skip to content

Commit

Permalink
Fixed #14421 - Table/Scroller: Scroller scrolls left when sorting col…
Browse files Browse the repository at this point in the history
…umns
  • Loading branch information
mehmetcetin01140 committed Dec 27, 2023
1 parent a99d8d6 commit 491c103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/scroller/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD
const contentPos = this.getContentPosition();
const calculateFirst = (_index = 0, _numT: number) => (_index <= _numT ? 0 : _index);
const calculateCoord = (_first: number, _size: number, _cpos: number) => _first * _size + _cpos;
const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
const scrollTo = (left = 0, top = 0) => this.scrollTo({ top, behavior });
let newFirst: any = 0;

if (this.both) {
Expand Down

0 comments on commit 491c103

Please sign in to comment.