cbopp-art / lightcase

The smart and flexible Lightbox Plugin.
https://cornel.bopp-art.com/lightcase/
Other
400 stars 106 forks source link

Resize after Ajax.... #133

Open CaffeineLab opened 7 years ago

CaffeineLab commented 7 years ago

So using type:"ajax" I get my lightcase window, but the height is way too short. If I call the same ajax call again, it sizes appropriately. I've tried this:

     onFinish: {
            redraw: function (){
                lightcase.resize();
             }
        }

But it seems to get called before the ajax is returned (a guess). Anyways - any way to hook to the ajax call so when it's complete I can call a resize?

cbopp-art commented 7 years ago

Hi! onFinish hook is getting called after ajax response, just before fading in the content. Your example doesn't work?

CaffeineLab commented 7 years ago

Ok - so the lightcase-contentInner has a height of 79.2, the lightcase-inlinewrap has height = 140.8 so I'm only seeing the top part of my content in the lightcase window - the rest of it is visible below the window. I'll try and get it posted online this afternoon. Thanks for the response......