Modal Horizontal Alignment
-
A possible fix/hack for those having trouble with the Modal popup not being centered in the window…
At least on my site, using the BigBang theme, it appeared that the plugin was positioning the popup inside the parent container, but calculating the position based on the window width. I changed it to calculate based on the parent container width, and everything seems to work now as intended.I edited public/assets/js/public.min.js. The section to change is around character 2810, right before the left-margin calculation: “s=(n-r)/2;”
I changed
n=e(window).width();
to
n=e(".mmt_container").width();
Hope that helps!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Modal Horizontal Alignment’ is closed to new replies.