javascript - JQuery matchHeight.js overlayed images -


i'm facing strange behaviour while using jquery matchheight.js. please take @ following print screen: overlayed images after running matchheight.js

if hit f5, desired result comes up: correct layout after hitting f5

here code creates page:

sdb = sdb + '<div class="items-container">'; $.each(json.parse(data.d), function (i, item) {     sdb = sdb + '<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">';     sdb = sdb + '<span class="glyphicon glyphicon-heart iconcatalogoperacoes addtowishlist" aria-hidden="true" data-modelo="' + item.referencia + '" data-variante="' + item.variante + '"></span>';     sdb = sdb + '<div class="item">';     sdb = sdb + '<img class="img-responsive addtoshoppingcart imgcatalog" style="display:block;margin-left:auto;margin-right:auto;" src="' + item.imagem + '" onerror="imgerror(this);" alt="" data-modelo="' + item.referencia + '" data-variante="' + item.variante + '">';     sdb = sdb + '<p class="text-center ref-identifier" style="font-family:\'roboto condensed\';font-weight:700;font-size:14pt;">' + item.referencia + '-' + item.variante + '</p>';     sdb = sdb + '</div>';     sdb = sdb + '</div>'; }); sdb = sdb + '</div>';  $('#divcatalogbody').append(sdb);  $('.item').matchheight(); 

i have no idea what's causing strange behaviour. sometimes, loads fine @ first, of times, need hit f5 correct behaviour comes up.

any ideas?

thanks in advance!

best regards all.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -