From 361475dda0dc69889f5d234f0e3d669fb1e4fcf6 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 15 Jun 2019 19:31:33 +0200 Subject: [PATCH] modal: add `scroll` option --- CHANGELOG.md | 2 ++ src/client/app/widgets/containers/modal.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 = []