Skip to content

Commit 327355c

Browse files
authored
Merge pull request #15703 from IgniteUI/mkirova/fix-hor-scrollbar-calc-19.2.x
fix(igxGrid): When col size is % round calculations for when to show …
2 parents 5221b7c + 17bdb29 commit 327355c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5524,7 +5524,7 @@ export abstract class IgxGridBaseDirective implements GridType,
55245524
let sum = 0;
55255525
for (const col of fc) {
55265526
if (col.level === 0) {
5527-
sum += parseInt(col.calcWidth, 10);
5527+
sum += parseFloat(col.calcWidth);
55285528
}
55295529
}
55305530
if (this.isPinningToStart) {
@@ -6265,7 +6265,7 @@ export abstract class IgxGridBaseDirective implements GridType,
62656265
* @hidden @internal
62666266
*/
62676267
public hasHorizontalScroll() {
6268-
return this.totalWidth - this.unpinnedWidth > 0 && this.width !== null;
6268+
return Math.round(this.totalWidth - this.unpinnedWidth) > 0 && this.width !== null;
62696269
}
62706270

62716271
/**

0 commit comments

Comments
 (0)