Skip to content

Commit

Permalink
Fixed #10960 - Table | Frozen Columns not working when created partia…
Browse files Browse the repository at this point in the history
…l dynamically
  • Loading branch information
yigitfindikli committed Dec 13, 2021
1 parent d54c385 commit b96acdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,7 @@ export class FrozenColumn implements AfterViewInit {
let left = 0;
let prev = this.el.nativeElement.previousElementSibling;
if (prev) {
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
left = DomHandler.getOuterWidth(prev) + (parseFloat(prev.style.left) || 0);
}
this.el.nativeElement.style.left = left + 'px';
}
Expand Down

0 comments on commit b96acdc

Please sign in to comment.