template="2024_lt_optik"; jQuery(window).load(function() { jQuery('#mod_yagendoo_power_shoppingcart-172 .product-list li').each(function () { // Display product list physically but not visible for height calculation jQuery(this).parent().parent().css({ 'visibility': 'hidden', 'display': 'block' }); var imgHeight = jQuery(this).find('.product-thumb').outerHeight(); var contentHeight = jQuery(this).find('.product-content').outerHeight(); if (contentHeight > imgHeight) { jQuery(this).find('.product-thumb').css('height', contentHeight - 5); } // Reset product list jQuery(this).parent().parent().css({ 'visibility': '', 'display': '' }); }); // Set top margin for flyout jQuery('#mod_yagendoo_power_shoppingcart-172 .cart-item').each(function () { var moduleHeight = jQuery(this).outerHeight(); var modulePadding = parseInt(jQuery(this).css('padding')) / 2; jQuery(this).find('#productList').css('top', moduleHeight - modulePadding); }); });