I use Fancybox2 to open an iFrame popup window (content comes from the same website). Within this popup, I have tabbed content (Bootstrap tabs). Each tab has content of different heights.

I am hoping that Fancybox can resize its height accordingly when I click tabs to see content on different heights.

I tried different combinations of autoSiz, autoHeight, etc. Got no success. Googled, and it seems many people asked related questions.

Am I missing something? Or is it doable? I feel this should be an easy configuration.

Thanks!

有帮助吗?

解决方案

You may need to trigger the $.fancybox.update() (fancybox v2.x) method after the tab selector event

If using iframes, try parent.$.fancybox.update()

You may also need set fitToView to false

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top