We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c4b8e2 + 236c5a4 commit 8dcef5bCopy full SHA for 8dcef5b
projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
@@ -6297,7 +6297,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
6297
if (this.isPercentWidth) {
6298
/* width in %*/
6299
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
6300
- width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
+ width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
6301
} else {
6302
width = parseInt(this.width, 10);
6303
}
0 commit comments