Skip to content

Commit f8c8c7f

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 fa6baf1 commit f8c8c7f

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)