diff --git a/CHANGELOG.md b/CHANGELOG.md index a0309d25..b01500a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## next - improved canvas rendering speed on chrome v69 and above +- widgets + - modal: `scroll` option ## 0.46.1 diff --git a/src/client/app/widgets/containers/modal.js b/src/client/app/widgets/containers/modal.js index 312f2a59..d5033959 100644 --- a/src/client/app/widgets/containers/modal.js +++ b/src/client/app/widgets/containers/modal.js @@ -26,6 +26,7 @@ module.exports = class Modal extends Panel { 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'}, + scroll: {type: 'boolean', value: true, help: 'Set to `false` to disable scrollbars'}, }, [], { @@ -43,8 +44,6 @@ module.exports = class Modal extends Panel { constructor(options) { - options.props.scroll = true - super(options) this.disabledProps = []