]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
modal: don't add margin & padding when sticky is not full width (#30621)
authorMuhammadamin <muhamadamin1992@gmail.com>
Tue, 23 Feb 2021 12:52:09 +0000 (07:52 -0500)
committerGitHub <noreply@github.com>
Tue, 23 Feb 2021 12:52:09 +0000 (14:52 +0200)
commit056216a3bd2fd1f28ba9ec6f2797aa2aaec5c6f0
tree1a1b76999378836e36ccdc4a4a8bb549213b303c
parent45ff785377bfc3e96889ee1c3d30364ba06a177a
modal: don't add margin & padding when sticky is not full width (#30621)

* modal: don't add margin & padding when sticky is not full width

* Check if element is shorter than window

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com>
js/src/modal.js
js/tests/unit/modal.spec.js