diff options
| author | Gaƫl Poupard <[email protected]> | 2020-12-03 15:08:31 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-12-04 07:52:03 +0200 |
| commit | 0a141dae94eb9efa301beeb55eed4ebc56e20e44 (patch) | |
| tree | 558c8d7a46a534dd30be0b449675c2293ea31f09 /js/dist/modal.js | |
| parent | 53d861c814eab1d00f4420ffd4208f3f9c2849b0 (diff) | |
| download | bootstrap-0a141dae94eb9efa301beeb55eed4ebc56e20e44.tar.xz bootstrap-0a141dae94eb9efa301beeb55eed4ebc56e20e44.zip | |
chore(dist): generate dist files
Diffstat (limited to 'js/dist/modal.js')
| -rw-r--r-- | js/dist/modal.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js index 9bc45fca0..3c52cdb6c 100644 --- a/js/dist/modal.js +++ b/js/dist/modal.js @@ -147,6 +147,8 @@ } }; + var isRTL = document.documentElement.dir === 'rtl'; + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } @@ -639,11 +641,11 @@ _proto._adjustDialog = function _adjustDialog() { var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; - if (!this._isBodyOverflowing && isModalOverflowing) { + if (!this._isBodyOverflowing && isModalOverflowing && !isRTL || this._isBodyOverflowing && !isModalOverflowing && isRTL) { this._element.style.paddingLeft = this._scrollbarWidth + "px"; } - if (this._isBodyOverflowing && !isModalOverflowing) { + if (this._isBodyOverflowing && !isModalOverflowing && !isRTL || !this._isBodyOverflowing && isModalOverflowing && isRTL) { this._element.style.paddingRight = this._scrollbarWidth + "px"; } }; |
