-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Reposition the modal on size changed. #72
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
Conversation
height and maxHeight option can pass a callback function or string 'auto', for recalculating height/maxHeight of modal-body everytime window's size changed.
Modal with '.modal-reposition' class will listen to any input 'change' event to check modal-size changed and fire 'resize.modal'.
The "change" event may be triggered by input, select and textarea element within modal. Otherwise required writing a custom script to trigger when ajax loading complete or trigger every specific interval .
testing page. |
…bootstrap-modal/master
I've just add the "Fit, Flow & Reposition" demo using my wip branch at last section of page. |
+1 |
This looks great. I really like how it works. I would definitely make use of it. |
Sorry for the late response, this looks promising. I might be missing something but I don't see any code for the fit/flow options in the merge request. Do you need to resubmit the pull request with your latest changes? |
pull request #87 |
close this repo, see #88 |
I'm not sure whether I've missed some of your features.
Now I'm trying to do my own auto reposition, hope it may be useful.