Seems a bit odd that the kotlin-css <flex> functio...
# javascript
r
Seems a bit odd that the kotlin-css flex function behaves differently from the flexbox spec in that omitting
basis
defaults to
FlexBasis.auto
rather than
FlexBasis.none
Copy code
// CSS
flex: 1;

// Kotlin
flex(1.0) // Different
flex(1.0, basis = FlexBasis.none) // same
Noticed this since I didn’t understand why my colleague used
put("flex", "1")
over
flex(1.0)
t
Direct analog:
flexGrow = 1.0
?
Also
grow
extension available
r
That might be true, but this will probably cause a lot of confusion and delay downstream