jquery - Nivo Slider: First image is scaled unproportional when displayed the first time -
i'm using nivo slider jquery plugin in div has smaller size images i'm displaying. when slider slides sec image on images scaled downwards correctly.
but when first image displayed first time (directly after loading page), scaled in width, not in height. how can alter that?
example: let's say, images have size of 1024*768 pixels. div has width of 400px. , have 3 images in slider.
directly after loading image 1 displayed 400*768 pixels (wrong) then slides image 2 in 400*300 pixels then image 3 in 400*300 pixels then image 1 in 400*300 pixels (right) ...
edit: noticed, happens in ie, in firefox there no such error.
i had same problem - added height: auto !important;
.nivo-main-image
.
jquery html nivo-slider
No comments:
Post a Comment