Skip to content

Commit

Permalink
fix flex basis bug with flexbox auto prop
Browse files Browse the repository at this point in the history
  • Loading branch information
SupremeTechnopriest committed Jan 9, 2016
1 parent 64af09e commit 2b56171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/View/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/View/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b56171

Please sign in to comment.