diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c1d9ddf..f9ee75e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ As of this version, packages except the `node` package are bundled with a midi b - widgets - keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom)) - input: add `validation` property (allows defining a regular expression that the value must match) - - modal: add `relative` geometry property + - modal: add `relative` position property - midi - accept sending sysex strings without spaces between the bytes diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 7d37eeec..06ec8edf 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -21,11 +21,11 @@ class Modal extends Panel { }, geometry: { _separator_modal_geometry: 'Modal geometry', - relative: {type: 'boolean', value: false, help: 'Set to `true` to make the modal\'s position and size relative to the button\'s.'}, popupWidth: {type: 'number|percentage', value: '80%', help: 'Modal popup\'s size'}, popupHeight: {type: 'number|percentage', value: '80%', help: 'Modal popup\'s size'}, popupLeft: {type: 'number|percentage', value: 'auto', help: 'Modal popup\'s position'}, popupTop: {type: 'number|percentage', value: 'auto', help: 'Modal popup\'s position'}, + relative: {type: 'boolean', value: false, help: 'Set to `true` to make the modal\'s position relative to the button\'s position.'}, }, style: { _separator_modal_style: 'Modal style', diff --git a/src/scss/widgets/containers.scss b/src/scss/widgets/containers.scss index e4858646..a98765af 100644 --- a/src/scss/widgets/containers.scss +++ b/src/scss/widgets/containers.scss @@ -523,12 +523,13 @@ right: auto; top: auto; bottom: auto; - position: absolute; width: var(--width, 100%); height: var(--height, 100%); margin-top: calc(-1 * var(--widget-spacing)); margin-left: calc(-1 * var(--widget-spacing)); padding: var(--widget-spacing); + align-items:flex-start; + justify-content: flex-start; } }