Browse Source

Add flex-direction to PropertyFactory

pull/1710/head
David Polak 8 years ago
parent
commit
dc687acdaa
  1. 12
      src/style_manager/model/PropertyFactory.js

12
src/style_manager/model/PropertyFactory.js

@ -72,6 +72,7 @@ module.exports = () => ({
obj.type = 'radio'; obj.type = 'radio';
break; break;
case 'display': case 'display':
case 'flex-direction':
case 'font-family': case 'font-family':
case 'font-weight': case 'font-weight':
case 'border-style': case 'border-style':
@ -166,6 +167,9 @@ module.exports = () => ({
case 'display': case 'display':
obj.defaults = 'block'; obj.defaults = 'block';
break; break;
case 'flex-direction':
obj.defaults = 'row';
break;
case 'position': case 'position':
obj.defaults = 'static'; obj.defaults = 'static';
break; break;
@ -411,6 +415,14 @@ module.exports = () => ({
{ value: 'none' } { value: 'none' }
]; ];
break; break;
case 'flex-direction':
obj.list = [
{ value: 'row' },
{ value: 'row-reverse' },
{ value: 'column' },
{ value: 'column-reverse' }
];
break;
case 'position': case 'position':
obj.list = [ obj.list = [
{ value: 'static' }, { value: 'static' },

Loading…
Cancel
Save