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 // Fixed values
switch (prop) { switch (prop) {
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'margin-top': case 'margin-top':
case 'margin-right': case 'margin-right':
case 'margin-bottom': case 'margin-bottom':
@ -198,10 +202,6 @@ export default () => ({
case 'position': case 'position':
obj.defaults = 'static'; obj.defaults = 'static';
break; break;
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'margin-top': case 'margin-top':
case 'margin-right': case 'margin-right':
case 'margin-bottom': case 'margin-bottom':
@ -240,6 +240,10 @@ export default () => ({
case 'box-shadow-blur': case 'box-shadow-blur':
obj.defaults = '5px'; obj.defaults = '5px';
break; break;
case 'top':
case 'right':
case 'bottom':
case 'left':
case 'min-height': case 'min-height':
case 'min-width': case 'min-width':
case 'max-height': 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), devtool: isProd ? 'source-map' : (!env ? 'cheap-module-eval-source-map' : false),
devServer: { devServer: {
headers: { 'Access-Control-Allow-Origin': '*' }, headers: { 'Access-Control-Allow-Origin': '*' },
disableHostCheck: true,
}, },
module: { module: {
rules: [{ rules: [{

Loading…
Cancel
Save