diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 0e2de1d61b..2e32331431 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -394,9 +394,6 @@ $('#exampleModal').on('show.bs.modal', function (event) { }) {% endhighlight %} -

Modals with dynamic heights

-

If the height of a modal changes while it is open, you should call $('#myModal').data('bs.modal').handleUpdate() to readjust the modal's position in case a scrollbar appears.

-

Usage

The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .modal-open to the <body> to override default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.

@@ -479,6 +476,11 @@ $('#myModal').modal({

Manually hides a modal. Returns to the caller before the modal has actually been hidden (i.e. before the hidden.bs.modal event occurs).

{% highlight js %}$('#myModal').modal('hide'){% endhighlight %} +

.modal('handleUpdate')

+

Readjusts the modal's positioning to counter a scrollbar in case one should appear, which would make the modal jump to the left.

+

Only needed when the height of the modal changes while it is open.

+ {% highlight js %}$('#myModal').modal('handleUpdate'){% endhighlight %} +

Events

Bootstrap's modal class exposes a few events for hooking into modal functionality.

All modal events are fired at the modal itself (i.e. at the <div class="modal">).

diff --git a/docs/_includes/nav/javascript.html b/docs/_includes/nav/javascript.html index 8e8b830e14..eba53771b0 100644 --- a/docs/_includes/nav/javascript.html +++ b/docs/_includes/nav/javascript.html @@ -19,7 +19,6 @@
  • Sizes
  • Remove animation
  • Varying content based on trigger button
  • -
  • Modals with dynamic heights
  • Usage
  • Options
  • Methods