Still have the error "Could not extract a stage height from the CSS. Traced height: 0px..." on Chrome, galleria v1.2.9b #274

Open
yourchoice opened this Issue Oct 22, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Still have the error "Could not extract a stage height from the CSS. Traced height: 0px..." on Chrome, galleria v1.2.9b.

I set in css :

galleria {width:508px; height:438px;}

.galleria-stage {height:366px;}

I tried to set somewhere in header a json var: var galleriaStageSize = {'width': 488, 'height':366}; and to force stage height in galleria.js :
self.$( 'stage' ).width(galleriaStageSize.width);
self.$( 'stage' ).height(galleriaStageSize.height);

testHeight() seems to return 0, in crome and the galleria DOM seems to not be built.

But nothing...

Thanks for any ideea...

Override the css
.galleria-stage {
background-color: white;height: 161px !important;width: 290px !important;
}

In script add
$('#galleria').galleria({ width: 300, height: 60, dataSource: ImgData });
Need to define height and width both in css and initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment