diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index 85fcb76d..af570b77 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -34,8 +34,7 @@ class Matrix extends StaticProperties(Panel, {scroll: false}) { layout: {type: 'string', value: 'horizontal', choices: ['horizontal', 'vertical', 'grid'], help: 'Defines how children are laid out.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, traversing: {type: 'boolean', value: true, help: 'Set to `false` to disable traversing gestures'}, - - + innerPadding: {type : 'boolean', value: true, help: 'Set to `false` to make the `padding` property apply only between children and not at the container\'s inner boundaries.'}, }, [], {}) diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 20f27429..5cc17f4e 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -36,6 +36,7 @@ class Modal extends Panel { gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, traversing: {type: 'boolean', value: false, help: 'Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget'}, scroll: {type: 'boolean', value: true, help: 'Set to `false` to disable scrollbars'}, + innerPadding: {type : 'boolean', value: true, help: 'Set to `false` to make the `padding` property apply only between children and not at the container\'s inner boundaries.'}, }, [], { diff --git a/src/scss/widgets/containers.scss b/src/scss/widgets/containers.scss index 92615454..e88af8b2 100644 --- a/src/scss/widgets/containers.scss +++ b/src/scss/widgets/containers.scss @@ -470,13 +470,19 @@ > inner { display: none; } + + &.no-inner-padding > .popup > .popup-wrapper > .popup-content > inner { + margin: calc(var(--widget-spacing) * -1); + } + + > .popup { padding:0; > .popup-wrapper { width: var(--width, 100%); height: var(--height, 100%); - .popup-content { + > .popup-content { // contain:unset; // == no restrain &:before { content: none;