1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 14:13:06 +02:00

Modal: Fix backdrop not readjusting when height changes

Fixes #15136.
Closes #15345.
Closes #15314.
Refs #14724, #14927.
This commit is contained in:
Heinrich Fenkart
2015-02-24 01:00:04 +01:00
parent 399658178d
commit f5beebe726
5 changed files with 74 additions and 29 deletions

View File

@@ -167,7 +167,7 @@ $(function () {
assert.notEqual($('#modal-test').length, 0, 'modal inserted into dom')
$('.contents').click()
assert.ok($('#modal-test').is(':visible'), 'modal visible')
$('#modal-test .modal-backdrop').click()
$('#modal-test').click()
})
.on('hidden.bs.modal', function () {
assert.ok(!$('#modal-test').is(':visible'), 'modal hidden')
@@ -222,7 +222,7 @@ $(function () {
$('<div id="modal-test"><div class="contents"/></div>')
.on('shown.bs.modal', function () {
triggered = 0
$('#modal-test .modal-backdrop').click()
$('#modal-test').click()
})
.on('hide.bs.modal', function () {
triggered += 1