Incorporated within my bootstrap modal window is a form alongside a link that triggers the jQuery
functionality of .slideToggle()
. By interacting with this link, a concealed div expands. Consequently, the size of the modal popover becomes fluid. Upon clicking the link, the following display pattern unfolds:
The default shadow in dark grey represents the Bootstrap
modal background. Within this backdrop, there exists a white box containing text, which serves as my modal popover. The light grey area symbolizes the original background shade for reference.
My objective pertains to adjusting the magnitude of the Bootstrap
modal background shadow so that it spans the entire view even amidst alterations in modal size.
Is there a straightforward method to accomplish this task?
Within my setup, I leverage Rails
, and the HTML (HAML)
and JS
implementations are notably concise:
= link_to "#", "Click me to toggle", id: "toggle"
# JS
$("#toggle").click ->
$(".my-div").slideToggle()