Browse Source

Add flex-wrap

pull/1710/head
David Polak 8 years ago
parent
commit
66e124bf5e
  1. 1
      src/editor/config/config.js
  2. 12
      src/style_manager/model/PropertyFactory.js

1
src/editor/config/config.js

@ -217,6 +217,7 @@ module.exports = {
'float',
'display',
'flex-direction',
'flex-wrap',
'position',
'top',
'right',

12
src/style_manager/model/PropertyFactory.js

@ -73,6 +73,7 @@ module.exports = () => ({
break;
case 'display':
case 'flex-direction':
case 'flex-wrap':
case 'font-family':
case 'font-weight':
case 'border-style':
@ -170,6 +171,9 @@ module.exports = () => ({
case 'flex-direction':
obj.defaults = 'row';
break;
case 'flex-wrap':
obj.defaults = 'nowrap';
break;
case 'position':
obj.defaults = 'static';
break;
@ -283,6 +287,7 @@ module.exports = () => ({
*/
switch (prop) {
case 'flex-direction':
case 'flex-wrap':
obj.requires = { display: ['flex'] };
break;
}
@ -436,6 +441,13 @@ module.exports = () => ({
{ value: 'column-reverse' }
];
break;
case 'flex-wrap':
obj.list = [
{ value: 'nowrap' },
{ value: 'wrap' },
{ value: 'wrap-reverse' }
];
break;
case 'position':
obj.list = [
{ value: 'static' },

Loading…
Cancel
Save