Topic: Incorrect behavior in responsive design with display:none (bootstrap)
Using juicebox output in tab style design (have 2 div tabs, one called "photo" with juicebox gallery inside, and other called "video" with youtube player inside), switching between them with changing css:
display: block;
visibility: visible;
display: none;
visibility: hidden;
Juicebox tab is visible by default, after I click to video tab and than back to photo -- everything works fine. But if I click to video tab (making juicebox tab not visible) and change the browser window size (or it can happen automatically in mobile browsers, when they hide address bar) then click back to juicebox tab -- juicebox output looks like the width of the page is about 133px, after I change size of window it looks fine again.
So seems like juicebox receiving wrong screen size when div is invisible.
Is there any workaround for that problem?