handleOversize and viewportPadding don't work

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

handleOversize and viewportPadding don't work

no64
I cant get handlOversize and viewportPadding to work.

I need to have Shadowbox in a specific size and the content to resize proportional inside the Shadowbox, but it seems Shadowbox does not react on the "handleOversize" setting.

Shadowbox.init({
    language: 'en',
        player: 'img',
        overlayOpacity: 0.6,
        overlayColor: '#000',
        fadeDuration: 0.6,
        viewportPadding: 0,
        handleOversize:'resize',
        continuous: true
       
});
</script>


and i tried also inline.


Reply | Threaded
Open this post in threaded view
|

Re: handleOversize and viewportPadding don't work

Auero
I think you need to use double-quotes like overlayColor: "#000"  instead of '#000' , the same would go for the other options like language, player, handleOversize.

Give it a shot.  
Reply | Threaded
Open this post in threaded view
|

Re: handleOversize and viewportPadding don't work

no64
nope - doesn't work.