javascript - Responsive Galleria -


i'm trying use plugin galleria in responsive mode, means re draw based on container size window re-sizes. demo on link i've provided shows example. can see that, resize window, whole gallery adjusts accordingly. issue is, plugin won't let me initialize gallery unless height has been specified dom element used container. means, i've had write whole lot of javascript code respond window resizes - destroys point of having responsive mode quite bit - in website above, can find explicit height specified. can explain me i'm going wrong?

i figured out myself. posting answer -

when initializing gallery - specify height in percentages - below. i'm guessing takes 50% of window height value in case. way, don't need explicitly specify heights anywhere , works advertised

galleria.run('#gallery', {responsive:true, height:0.5, debug:false}); 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -