From 2b56171b2b40aace489999a47a5907c8ee62b3e8 Mon Sep 17 00:00:00 2001 From: supremetechnopriest Date: Sat, 9 Jan 2016 03:28:21 -0500 Subject: [PATCH] fix flex basis bug with flexbox auto prop --- lib/View/View.js | 2 +- src/View/View.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/View/View.js b/lib/View/View.js index d8e8591..9109603 100644 --- a/lib/View/View.js +++ b/lib/View/View.js @@ -52,7 +52,7 @@ var View = (0, _radium2.default)(_class = (_temp = _class2 = (function (_Compone dynamicStyles.height = this.props.height; } - if (this.props.auto) dynamicStyles.flex = '0 0 auto'; + if (this.props.auto) dynamicStyles.flex = '1 0 0'; var style = undefined; if (this.props.style) { diff --git a/src/View/View.js b/src/View/View.js index 797016b..6006239 100644 --- a/src/View/View.js +++ b/src/View/View.js @@ -34,7 +34,7 @@ export default class View extends Component { dynamicStyles.height = this.props.height; } - if (this.props.auto) dynamicStyles.flex = '0 0 auto'; + if (this.props.auto) dynamicStyles.flex = '1 0 0'; let style; if(this.props.style) {