Browse Source

Update defaults on top/right/bottom/left properties. Fixes #2091

refactor-traits
Artur Arseniev 7 years ago
parent
commit
c5bb4fab7d
  1. 12
      src/style_manager/model/PropertyFactory.js
  2. 1
      webpack.config.js

12
src/style_manager/model/PropertyFactory.js

@ -24,6 +24,10 @@ export default () => ({
// Fixed values
switch (prop) {
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'margin-top':
case 'margin-right':
case 'margin-bottom':
@ -198,10 +202,6 @@ export default () => ({
case 'position':
obj.defaults = 'static';
break;
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'margin-top':
case 'margin-right':
case 'margin-bottom':
@ -240,6 +240,10 @@ export default () => ({
case 'box-shadow-blur':
obj.defaults = '5px';
break;
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'min-height':
case 'min-width':
case 'max-height':

1
webpack.config.js

@ -39,7 +39,6 @@ module.exports = env => {
devtool: isProd ? 'source-map' : (!env ? 'cheap-module-eval-source-map' : false),
devServer: {
headers: { 'Access-Control-Allow-Origin': '*' },
disableHostCheck: true,
},
module: {
rules: [{

Loading…
Cancel
Save