Lightbox not centering on Firefox | Community
Skip to main content
April 15, 2016
Question

Lightbox not centering on Firefox

  • April 15, 2016
  • 1 reply
  • 3079 views

I have a case where the lightbox modal isn't centering when shown-- apparently this is happening only on Firefox.

What's happening is that when "positionContent" (in forms2.js) is being called, vars w and h of the contentElem are both <0 (-20).

Is this a known bug?  What's the best workaround?

Thank you...

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
April 15, 2016

Seem to remember I had a fix, but can't find it in the Community.  Can you link to your page so I can redo it?

Level 2
April 15, 2016

Hi Sanford,

Thanks so much for volunteering to help on this. The page can be found here: 45.55.170.194 (it's under development)

Click on either Request a Demo or Contact Us.

Thanks!

SanfordWhiteman
Level 10
April 15, 2016

Couldn't find my old fix... so frustrating.  Looks like you want this:

<script>

MktoForms2.onFormRender(function(form){

  MktoForms2.$(window).resize();

});

</script>