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

Fancybox2 image preview not respect autoSize #27

Open
nick-denry opened this issue Mar 17, 2018 · 0 comments
Open

Fancybox2 image preview not respect autoSize #27

nick-denry opened this issue Mar 17, 2018 · 0 comments

Comments

@nick-denry
Copy link
Contributor

Hi!

I've found that fancybox2 doesn't respect autoSize and fitToView options if type attribute is set.

https://github.com/navatech/yii2-roxymce/blob/b92b7d863ab4325e2a59d76f33e15d17c04899f3/src/web/js/roxy.js#L50

In this case preview opens like this
2018-03-17 15 35 08

If we omit type type option everything is ok. I guess that is fancybox2 bug that couldn't be fixed without change fancybox2 itself.

  • Yii2 v.: * 2.0.14.1
  • jQuery JavaScript Library v3.2.1

Could you pls check if bug exist?

@nick-denry nick-denry changed the title Fancybox image preview not respect autoSize Fancybox2 image preview not respect autoSize Mar 17, 2018
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

1 participant