Skip to content

Commit 8f7573e

Browse files
MKirovaMayaKirova
authored andcommitted
fix(igxGrid): Retain float value when measuring grid width so that there's no mismatch when zoomed out.
1 parent 3be8716 commit 8f7573e

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

0 commit comments

Comments
 (0)