Hi All,

I am using Galleria on a development website to show product images that are attached to a product page. All is working perfectly (love the module, by the way!) when displayed as a normal product page.

However, I have sinced changed the layout of the product page to use QuickTabs so that each section of the product shows up on it's own tab eg: Product Features is tab 1, Specifications is tab 2, Gallery is tab 3, etc.

Now, I get the fatal error "Fatal error: Could not extract a stage height from the CSS. Traced height: 0px." when opening the gallery tab and from the research I've done (multiple searches) I believe this is because when the jQuery is executed that gets the stage height from the parent container is returns as zero because the div that the galleria slideshow is sitting in is set to display:none at the time of loading (because the Product Features tab is the default tab, all others are hidden).

My question is (because my php/jQuery/etc knowledge is limited) do you guys know how I can get it to re-load the jQuery for Galleria when the Gallery tab is opened, assuming that's what's causing the error?

For reference, here's some info on my setup:
Drupal 7.10, QuickTabs 7.x-3.3, Views 7.x-3.1 & Galleria 7.x-1.0-beta2
Each product page contains content fields (that are set to hidden) that are then pulled to individual views which are then displayed via a quicktab instance with one view per tab (pulling the specific data I want to show on the individual tabs).
I have tested with the width and height set (and not set) via the galleria option set, both with error. I have also tried setting the height via CSS and it doesn't show up the error but instead loads the first image in the gallery and then just hangs on the first image with the little spinning circle indicating that it's trying to load.

If I load the product page and quickly open the Gallery tab I do not get the error (I'm thinking this is because I'm opening the gallery tab before the Galleria jQuery executes?). If I wait for the page to load fully and then select the gallery tab I get the error in all cases.

Any suggestions are greatly appreciated.

-Chasen

Comments

Component:Code» Miscellaneous

I don't know a way to do that right now.
Sounds more like a feature request for the Galleria javascript library to support loading while the stage is hidden.

Status:Active» Closed (fixed)

There's now a new option called 'wait' in the library that should fix this issue.

Could not extract a stage height from the CSS. Traced height: 0px
i have the same problem i can not find "wait" checkbox
any advices?

I have the same problem if quicktabs is on the same page as a galleriy. In this case i get the error gallery could not load. On a diffrent page without quicktabs it works. The diffrence is just that my galleria is outside of a quicktab.

The issue #1613088: Could not extract a stage height from the CSS has a patch for the "Fatal error: Could not extract a stage height from the CSS. Traced height: 0px." message.