Skip to content

Commit 8dcef5b

Browse files
authored
Merge pull request #13804 from IgniteUI/mkirova/fix-13798-17.0.x
fix(igxGrid): Retain float value when measuring grid width so that th…
2 parents 5c4b8e2 + 236c5a4 commit 8dcef5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6297,7 +6297,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
62976297
if (this.isPercentWidth) {
62986298
/* width in %*/
62996299
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
6300-
width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
6300+
width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
63016301
} else {
63026302
width = parseInt(this.width, 10);
63036303
}

0 commit comments

Comments
 (0)