Commit 769c27a1 authored by Kevin Kirsche's avatar Kevin Kirsche Committed by Heinrich Fenkart

Document how to properly handle modals with dynamic content height

Fixes #15106.
Closes #15910.
parent c40c31a3
......@@ -394,6 +394,9 @@ $('#exampleModal').on('show.bs.modal', function (event) {
})
{% endhighlight %}
<h2 id="modals-handle-update">Modals with dynamic heights</h2>
<p>If the height of a modal changes while it is open, you should call <code>$('#myModal').data('bs.modal').handleUpdate()</code> to readjust the modal's position in case a scrollbar appears.</p>
<h2 id="modals-usage">Usage</h2>
<p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.modal-open</code> to the <code>&lt;body&gt;</code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment