lightcase icon indicating copy to clipboard operation
lightcase copied to clipboard

Resize after Ajax....

Open CaffeineLab opened this issue 8 years ago • 2 comments

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?

CaffeineLab avatar May 26 '17 17:05 CaffeineLab

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

cbopp-art avatar May 26 '17 17:05 cbopp-art

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......

CaffeineLab avatar May 26 '17 18:05 CaffeineLab