fancy__content width and height are not being set when fancybox iframe opens #562
-
Hey all, I am running into issues with getting fancybox to display the selected image correctly when the iframe opens. After following the "getting started" section of the documentation, I was able to successfully able to get it installed using npm. I thought everything was working correctly, but when I click an image from the gallery and it opens in the fancybox iframe the "fancy__content" div container is not receiving any height or width. Judging by the JSfiddle examples I looked through supplied by the documentation, it seems like those two values are supposed to be dynamically set. Does anyone have any ideas why it would be failing to do so? HTML
JS File
Output that I see in the browser when clicking on an image from the gallery
Thanks for any help you may be able to provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Sorry, but it is not possible to help you without seeing a live page/demo. As you can see in any other demo, it works well. Maybe there is an CSS conflict on your page, but, as you can understand, I do not know that without seeing your page. |
Beta Was this translation helpful? Give feedback.
You have mixed CSS from different versions of Fancybox. Remove this file - https://agility2.staging.mysites.io/wp-content/themes/Agility-Theme/dist/src/scss/config/_fancybox.scss