]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix bug not re-calculating scrollbar width when opening modal.
authorStefan Sundin <stefan@stefansundin.com>
Fri, 8 Aug 2014 17:11:10 +0000 (10:11 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 8 Sep 2014 06:06:37 +0000 (23:06 -0700)
commitf25181615e0bc0e3b80e15f44bbe505842f477a4
treed9a2f37c04ecda33dfc7f0bba392f54855bda0e1
parentb4895a0d6dc493f17fe9092db4debe44182d42ac
Fix bug not re-calculating scrollbar width when opening modal.

If opening a modal when a scrollbar is present, closing it, then
resizing the window so the scrollbar disappears, then opening the
modal again, the content would shift. This fixes the problem by
always calculating the scrollbar width every time a modal is opened.

Closes #14357.
js/modal.js