jQuery(window).on("resize", function(event) {
methods.setResponsiveEvents();
var innerWidth = jQuery(listParent).width();
var innerHeight = jQuery(listParent).height();
Public Methods
*******************************/
var methods = {
init : function() {
return this.each(function() {
methods.appendHTML();
methods.setEventHandlers();
methods.initializeItems();
});
},
/******************************
Initialize Items
Fully initialize everything. Plugin is loaded and ready after finishing execution
*******************************/
initializeItems : function() {
var listParent = object.parent();
var innerHeight = listParent.height();
var childSet = object.children();
methods.sortResponsiveObject(settings.responsiveBreakpoints);
var innerWidth = listParent.width(); // Set widths
itemsWidth = (innerWidth) / itemsVisible;
childSet.width(itemsWidth);
if (settings.clone) {
childSet.last().insertBefore(childSet.first());
childSet.last().insertBefore(childSet.first());
object.css({
'left' : -itemsWidth
});
}
object.fadeIn();
jQuery(window).trigger("resize"); // needed to position the arrows correctly
},
.nbs-flexisel-container {
height: 180px;
}
.nbs-flexisel-nav-left, .nbs-flexisel-nav-right {
position: absolute;
top: 50%;
margin-top: -15px;
}
Find more questions by tags JavaScript
Tried to display height. The first time she is 39 and got 160 - lemuel.Zie commented on July 9th 19 at 10:44
If the first - then picture can not manage to boot, hence the height is wrong. - Daphne_Roob commented on July 9th 19 at 10:47
"If the first - then picture can not manage to boot, hence the height of wrong" - that I immediately thought of this. But if the window width is large, it is in fact all normal. - lemuel.Zie commented on July 9th 19 at 10:50
But I have not see the code that performs these methods. - Daphne_Roob commented on July 9th 19 at 10:59