strip: make explicit dimension act as constraint, rely on explicit flex value for expanding widgets

This commit is contained in:
jean-emmanuel 2017-06-06 09:15:11 +02:00
parent 1304ce2586
commit 7e3763ef3f
4 changed files with 30 additions and 26 deletions

View file

@ -167,8 +167,8 @@ module.exports.widgets = function(data, parentNode, parentWidget) {
}
// dimensions / coordinates css
var styleW = widgetInner.getProp('width') && widgetInner.getProp('width') != 'auto' ? `width: ${geometry.width}; min-width:auto;` : '',
styleH = widgetInner.getProp('height') && widgetInner.getProp('height') != 'auto' ? `height: ${geometry.height}; min-height:auto;` : '',
var styleW = widgetInner.getProp('width') && widgetInner.getProp('width') != 'auto' ? `width: ${geometry.width}; min-width:${geometry.width};` : '',
styleH = widgetInner.getProp('height') && widgetInner.getProp('height') != 'auto' ? `height: ${geometry.height}; min-height:${geometry.height};` : '',
styleL = widgetInner.getProp('left') && widgetInner.getProp('left') != 'auto'|| widgetInner.getProp('left') == 0 ?`left: ${geometry.left};` : '',
styleT = widgetInner.getProp('top') && widgetInner.getProp('top') != 'auto'|| widgetInner.getProp('top') == 0 ? `top: ${geometry.top};` : ''

View file

@ -103,7 +103,6 @@
> .widget {
height: auto!important;
max-height: 100%;
min-width: 0!important;
margin: calc(var(--spacing) / 2 * 1rem);
}
left:29rem;