MDL-60621 js: Add ability to set a modal to be scrollable or not
authorMihail Geshoski <mihail@moodle.com>
Tue, 16 Jun 2020 01:42:08 +0000 (09:42 +0800)
committerMihail Geshoski <mihail@moodle.com>
Tue, 30 Jun 2020 02:18:19 +0000 (10:18 +0800)
commite13cbf9e27f688e59c868b7900a65d5133a4a753
treee419508e3890333ebfc771bcee173ede4a2dcf9c
parentc11e2517a77b94c844d88e45b61af4305bbc1cf6
MDL-60621 js: Add ability to set a modal to be scrollable or not

With this change the modal can be configured to be scrollable or not.
If enabled to be 'scrollable', the modal's body will become scrollable
when the modal's height exceeds the browser's height. This is useful
in cases where the content in the modal is quite large and extends the
modal beyond the browser's height, which usually results in a bad UI.
If 'scrollable' is not explicitely configured, it will be set as 'true'
by default as in most cases it would be the expected behaviour.
lib/amd/build/modal.min.js
lib/amd/build/modal.min.js.map
lib/amd/build/modal_factory.min.js
lib/amd/build/modal_factory.min.js.map
lib/amd/src/modal.js
lib/amd/src/modal_factory.js
lib/upgrade.txt