Image not responsive when setting height

354 views
Skip to first unread message

Lala Koko

unread,
Dec 5, 2012, 12:24:57 PM12/5/12
to camera-s...@googlegroups.com
Hello,

great plugin! I have 5 photos with height 400px. My script is:

$('.camera_wrap').camera({
            fx: 'simpleFade',
            height:'400px',
            minHeight: '200px'
                   
        });

 When I resize the browser window the image is not sized according to aspect ratio but it is rather cropped from all sides so as to fit. I don't think this is the normal behaviour. Can somebody help me on this?

thanks

Grant

unread,
Jan 29, 2013, 10:09:21 PM1/29/13
to camera-s...@googlegroups.com
From what I have experienced, defining the height there upsets the responsiveness. Try defining the height in the actual script file camera.js. Under the list  var defaults = {alignment : 'center',   etc...... you will find the "height : " variable. Try settign that to 400px, see if it does what you want.

Good luck.

durga....@teampumpkin.com

unread,
Aug 31, 2018, 3:45:45 AM8/31/18
to Camera slideshow
Hello Grant,

This helped me. Thanks for the advise.

Cheers!
Reply all
Reply to author
Forward
0 new messages