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 31b50bc + ae3afbf commit 426b96aCopy full SHA for 426b96a
projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
@@ -6304,7 +6304,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
6304
if (this.isPercentWidth) {
6305
/* width in %*/
6306
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
6307
- width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
+ width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
6308
} else {
6309
width = parseInt(this.width, 10);
6310
}
0 commit comments