Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iFrame percentage size #10

Closed
grahammcuk opened this issue Apr 1, 2015 · 4 comments
Closed

iFrame percentage size #10

grahammcuk opened this issue Apr 1, 2015 · 4 comments

Comments

@grahammcuk
Copy link

Is there a way to define the iFrame size in percentages? For example. I would like my iFrame lightbox to open up at 80% width and 80% height of the viewport.

Thanks

@cbopp-art
Copy link
Owner

It should be possible if you initialize your link with following settings:

$('#myIframe').lightcase({
    shrinkFactor : 0.8,
    maxWidth : '100%',
    maxHeight : '100%',
    iframe : {
        width : '100%',
        height :'100%'
    }
});

@cbopp-art
Copy link
Owner

Did it work for you and could we close this issue?
Thanks for your quick reply.

@cbopp-art
Copy link
Owner

@grahammcuk
I close this issue now because I didn't got any feedback from you.
In case you still would have troubles with this, feel absolutely free to reopen this issue again.

Thanks!

@andrespazsoldan
Copy link

I tried what you suggested and it's not working. The light case image is too small and I can't seem to be able to modify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants