-
Notifications
You must be signed in to change notification settings - Fork 6.7k
modal does not show up when on fullscreen mode on an element #3686
Comments
This has nothing to do with modal, it's an issue in your 'screenfull' implementation. Please ask questions on StackOverflow and report bugs on GitHub. |
Thank you. I will do as you suggested. |
Hi When browsers go on fullscreen on an element, for ui bootstrap's modal to appear in front, i think that, it must be a child of the element that is on fullscreen (I verified this by editing the html source of ui modal from developer tools and pasting it inside the element that has gone full screen and the problem was fixed). Since bootstrap appends the modal window to the Here are the steps again (just putting it here again so you won't have to scroll up and read the old one) To test it: Here is how to "launch the preview in separate window" on plnkr: |
I solved this issue by editing the modal source. It involved modal window to be appended to the element of my choice (in this case, element that goes full screen). Options object we pass to the In modal code, I changed from these:
to these:
It would be great if a fix similar to this would be added to the code. |
This fix work for me! Maybe merge this little patch to master? |
@nozer thx for solution. @rvanbaalenv vote for reopen this issue. |
Whoa! Let's merge to master! |
Thank you @PanfilovDenis @numbata and @vdv73rus. I will create a pull request later tonight or tomorrow if none else has time to do it. |
Awesome! Literally came looking for this ability right now as it's much needed. |
I just created a pull request for this and it says "all checks have passed". I am not sure what I need to do next other than to wait. |
For the ones who uses Angular2+ |
If I go full screen on a div element and then if I click on a button on this div to show a modal, that modal will not show up.
Here is a plnkr demo (it is a modified version of what you have on the bootstrap modal template page).
1 - Please click on "launch the preview in a separate window" icon of plnkr and then
2 - Click on "Go Full Screen" button.
3 - Then, when in full screen mode, click on any of the buttons to try to show a modal.
http://plnkr.co/edit/oKZHZZebyNMwpG114Jyy?p=preview
I think that if I could specify in modal options what the parent element of the modal window is, then this could solve the issue.
The text was updated successfully, but these errors were encountered: