To scale the jssor slider, it will always maintain aspect ratio. You cannot scale without scaling.
If you want to keep the original height, you can disable scaling by deleting the following code.
function ScaleSlider() { var parentWidth = $('#slider1_container').parent().width(); if (parentWidth) { jssor_slider1.$ScaleWidth(parentWidth); } else $JssorUtils$.$Delay(ScaleSlider, 30); } ScaleSlider(); $(window).bind("load", ScaleSlider); $(window).bind("resize", ScaleSlider); $(window).bind("orientationchange", ScaleSlider);
In addition, in order for your page to react and maintain the auto-center of the slider, you can wrap the slider with a wrapper.
<div style="position: relative; width: 100%; overflow: hidden;"> <div style="position: relative; left: 50%; width: 5000px; text-align: center; margin-left: -2500px;"> <div id="slider1_container" style="...margin: 0 auto;..." ...> </div> </div> </div>
source share