Skip to content

Commit 426b96a

Browse files
authored
Merge pull request #13805 from IgniteUI/mkirova/fix-13798-16.1.x
fix(igxGrid): Retain float value when measuring grid width so that th…
2 parents 31b50bc + ae3afbf commit 426b96a

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
@@ -6304,7 +6304,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
63046304
if (this.isPercentWidth) {
63056305
/* width in %*/
63066306
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
6307-
width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
6307+
width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
63086308
} else {
63096309
width = parseInt(this.width, 10);
63106310
}

0 commit comments

Comments
 (0)