I have created a modal to allow users to add alarms, one alarm can have many notifications of different kinds, so I want the user to choose which kind of notification he wants via a dropdown.
You can see a (not 100% working) fiddle here: http://jsfiddle.net/renatoargh/teX7Y/
I am using Bootstrap version 2.3.2
.
Basicaly what happens is shown in the pictures below:
1- Initial state
2- Broken state, with dropdown making modal overflow instead of appearing over it
I have tried setting a huge value to z-index
of ul#dropdown-menu
but it doesn't seems to work. Also I have tried changing the display
property without success.
Can someone help me?
EDIT Opening the dropdown upwards (dropup) to the upside is also not an option since the problem occurs (when the screen is resized to desktop size); http://jsfiddle.net/hashem/teX7Y/1/
To set the footer of the Bootstrap modal, use the .modal-footer class. You can try to run the following code to implement the modal-footer class −
The .modal-body class is used to define the style for the body of the modal. Add any HTML markup here; paragraphs, images, videos, etc. The .modal-footer class is used to define the style for the footer of the modal. Note that this area is right aligned by default.
Change the size of the modal by adding the .modal-sm class for small modals or .modal-lg class for large modals. Add the size class to the <div> element with class .modal-dialog: By default, modals are medium in size. For a complete reference of all modal options, methods and events, go to our Bootstrap JS Modal Reference.
The .close class styles the close button, and the .modal-title class styles the header with a proper line-height. The .modal-body class is used to define the style for the body of the modal. Add any HTML markup here; paragraphs, images, videos, etc. The .modal-footer class is used to define the style for the footer of the modal.
You can just add another class to your modal-body
<div class="modal-body girlLookAtThatBody">
and of course
.girlLookAtThatBody{
overflow-y:inherit !important;
}
So check it:
http://jsfiddle.net/uUvyy/
Hope that helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With