Fixing Carousel positioning after window resize (1.0.1)
Latest update: February 1, 2017 | Reading time: 1 to 2 minutesThis is an issue with the Carousel when resizing the window. When the browser window resizes, e.g. from 980px to 1080px, the Carousel is not properly positioned.
Affected versions: 1.0, 1.0.1
Here are the required steps to fix this issue:
You must update the original file clean_start.js (version 1.0.1):
Enclose lines #306 – #332 with the following code (in blue):
window.cleanstartSlider = function slideWindow(){ var header_height = jQuery('header').outerHeight(); ... ... jQuery(".flexslider .carousel-caption.show").removeClass("wait_for_photo_load").show(); } cleanstartSlider();
At line #545, enter the following code, just under the “use strict”; line:
jQuery(window).resize(function() { "use strict"; cleanstartSlider(); ...
This fix will be included in version 1.0.2.