strip: make explicit dimension act as constraint, rely on explicit flex value for expanding widgets
This commit is contained in:
parent
1304ce2586
commit
7e3763ef3f
4 changed files with 30 additions and 26 deletions
|
|
@ -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};` : ''
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@
|
|||
> .widget {
|
||||
height: auto!important;
|
||||
max-height: 100%;
|
||||
min-width: 0!important;
|
||||
margin: calc(var(--spacing) / 2 * 1rem);
|
||||
}
|
||||
left:29rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue