문제

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