Skip to content

Commit

Permalink
Merge pull request #13805 from IgniteUI/mkirova/fix-13798-16.1.x
Browse files Browse the repository at this point in the history
fix(igxGrid): Retain float value when measuring grid width so that th…
  • Loading branch information
ChronosSF committed Jan 22, 2024
2 parents 31b50bc + ae3afbf commit 426b96a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6304,7 +6304,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
if (this.isPercentWidth) {
/* width in %*/
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
width = computed.indexOf('%') === -1 ? parseInt(computed, 10) : null;
width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
} else {
width = parseInt(this.width, 10);
}
Expand Down

0 comments on commit 426b96a

Please sign in to comment.