Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #15106] Document how to properly handle modals with dynamic height #15910

Closed
wants to merge 2 commits into from

Conversation

kkirsche
Copy link
Contributor

Fixes #15106 — Document how to properly handle modals with dynamic content height

X-Ref: #15881 — Fix backdrop not readjusting when height changes

…c content height

Fixes twbs#15106 — Document how to properly handle modals with dynamic content height

X-Ref: twbs#15881
@cvrebert cvrebert added the docs label Feb 24, 2015
@mdo
Copy link
Member

mdo commented Feb 25, 2015

Works for me.

@mdo mdo added this to the v3.3.4 milestone Feb 25, 2015
@hnrch02
Copy link
Collaborator

hnrch02 commented Feb 25, 2015

See my comment here for clarification: #15881 (comment)

@hnrch02
Copy link
Collaborator

hnrch02 commented Feb 25, 2015

But documenting it is a good idea, just need to change the text to reflect the new behavior.

@@ -394,6 +394,9 @@ <h4 class="modal-title" id="exampleModalLabel">New message</h4>
})
{% endhighlight %}

<h2 id="modals-handle-update">Modals with dynamic heights</h2>
<p>Modals which have a dynamic height such as modals loading their content with AJAX should call <code>$('#myModal').data('bs.modal').handleUpdate()</code> when the content updates to ensure the modal and backdrop are the correct sizes. This only needs to occur if the modal is visible when the update to the modal's content occurs.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second sentence repeats "occur", BTW.

Update verbiage per @hnrch02's comment
@kkirsche
Copy link
Contributor Author

Updated verbiage based on @hnrch02's comments.

EDIT: If all good will rebase this. I left it so the history was still here should anyone want to compare

@cvrebert cvrebert mentioned this pull request Feb 25, 2015
@hnrch02 hnrch02 closed this in 769c27a Feb 25, 2015
@kkirsche kkirsche deleted the documentHandleUpdate branch March 2, 2015 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to properly handle modals with dynamic content height
4 participants