Skip to content

Patch to put bootstrap modal on top of the screen when the modal is called inside Iframe

Notifications You must be signed in to change notification settings

Pistil-Studio/bootstrap-modal-inside-iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Bootstrap modal inside iframe v1

Le script ajuste le positionnement de la modal quand cette dernière est affichée à l'intérieur d'une Iframe. En effet si l'utilisateur a scrollé la page, et que le haut de l'iframe n'est plus visible, la modal s'affiche nativement en tout en haut de l'iframe. Grace au script, la modal sera toujours affichée en haut de l'écran et non en haut de l'iframe.

The script ajust positionning of the modal when it called inside iframe, and when the user have scrolled down the page. The modal will be displayed on the top of the screen.

Documentation

Il suffit d'inclure le fichier Javascript dans la page appelant la modal

Just include the JS file into the page who call the iframe.

<script src="boostrap-modal-inside-iframe.js"></script>

About

Patch to put bootstrap modal on top of the screen when the modal is called inside Iframe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published