@@ -606,7 +606,7 @@ angular.module('ui.grid')
606
606
607
607
if ( angular . isNumber ( column . width ) ) {
608
608
// pixel width, set to this value
609
- if ( column . colDef . allowFloatWidth ) {
609
+ if ( column . colDef . allowFloatWidth ) {
610
610
width = parseFloat ( column . width ) ;
611
611
} else {
612
612
width = parseInt ( column . width , 10 ) ;
@@ -620,7 +620,7 @@ angular.module('ui.grid')
620
620
// percentage width, set to percentage of the viewport
621
621
// round down to int - some browsers don't play nice with float maxWidth
622
622
var percentageIntegerValue = parseInt ( column . width . replace ( / % / g, '' ) , 10 ) ;
623
- if ( column . colDef . allowFloatWidth ) {
623
+ if ( column . colDef . allowFloatWidth ) {
624
624
width = parseFloat ( percentageIntegerValue / 100 * availableWidth ) ;
625
625
} else {
626
626
width = parseInt ( percentageIntegerValue / 100 * availableWidth , 10 ) ;
@@ -657,7 +657,7 @@ angular.module('ui.grid')
657
657
asterisksArray . forEach ( function ( column ) {
658
658
var width = parseInt ( column . width . length * asteriskVal , 10 ) ;
659
659
660
- if ( column . colDef . allowFloatWidth ) {
660
+ if ( column . colDef . allowFloatWidth ) {
661
661
width = parseFloat ( column . width . length * asteriskVal ) ;
662
662
}
663
663
0 commit comments