modal: add scroll option

This commit is contained in:
jean-emmanuel 2019-06-15 19:31:33 +02:00
parent 496e743a3d
commit b816899957
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,8 @@
## next
- improved canvas rendering speed on chrome v69 and above
- widgets
- modal: `scroll` option
## 0.46.1

View file

@ -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 = []