user2395327
user2395327

Reputation: 11

fancybox.open width doesn't work

Can anyone explain why the width isn't being respected?

$.fancybox.open(
    ['#notifications'],
    {
        width : '400',
        closeBtn : false, 
        helpers : {
            overlay : {closeClick: false}
        }
    }
);

Upvotes: 1

Views: 1687

Answers (1)

Claudio Redi
Claudio Redi

Reputation: 68400

Try setting autoDimensions = false

$.fancybox.open(
    ['#notifications'],
    {
        autoDimensions: false,
        width : '400',
        closeBtn : false, 
        helpers : {
            overlay : {closeClick: false}
        }
    }
);

Upvotes: 1

Related Questions