react-flexr
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -68,3 +68,7 @@ 'use strict'; | ||
return { flex: '0 0 ' + 100 / denominator * numerator + '%' }; | ||
var calcSize = '0 0 ' + 100 / denominator * numerator + '%'; | ||
return { | ||
WebkitFlex: calcSize, | ||
flex: calcSize | ||
}; | ||
} | ||
@@ -131,3 +135,6 @@ | ||
this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize && responsiveSize !== 'hidden' ? calcWidth(responsiveSize) : size ? calcWidth(size) : growStyle !== undefined ? { flex: '' + growStyle + ' 1 auto' } : null, style].concat(Array.isArray(styles) ? styles : [styles]); | ||
this.styles = [CellStyles.base, align ? CellStyles[align] : null, gutter ? { padding: '0 ' + gutter } : null, flex ? CellStyles.flex : null, responsiveSize && responsiveSize !== 'hidden' ? calcWidth(responsiveSize) : size ? calcWidth(size) : growStyle !== undefined ? { | ||
flex: '' + growStyle + ' 1 auto', | ||
WebkitFlex: '' + growStyle + ' 1 auto' | ||
} : null, style].concat(Array.isArray(styles) ? styles : [styles]); | ||
@@ -134,0 +141,0 @@ return responsiveSize === 'hidden' ? null : _React2['default'].createElement( |
{ | ||
"name": "react-flexr", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "React flexbox grid made simple.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
@@ -29,3 +29,7 @@ import StyleSheet from 'react-style'; | ||
const [ numerator, denominator ] = size ? size.split('/') : []; | ||
return { flex: `0 0 ${ ( 100 / denominator ) * numerator }%` }; | ||
const calcSize = `0 0 ${ ( 100 / denominator ) * numerator }%`; | ||
return { | ||
WebkitFlex: calcSize, | ||
flex: calcSize | ||
}; | ||
} | ||
@@ -68,3 +72,6 @@ | ||
size ? calcWidth(size) : | ||
growStyle !== undefined ? { flex: `${ growStyle } 1 auto` } : null, | ||
growStyle !== undefined ? { | ||
flex: `${ growStyle } 1 auto`, | ||
WebkitFlex: `${ growStyle } 1 auto` | ||
} : null, | ||
style | ||
@@ -71,0 +78,0 @@ ].concat( Array.isArray(styles) ? styles : [styles] ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27312
575