javascript - isotope height not calculated right tablet -
so problem: i'm using isotope , i'm having height issue. doesn't calculate correct height on tablet/ipad - gets crumbled @ top). desktop , smartphones working fine.
this code isotope:
$(window).load(function() { var $container = $('.isotope').isotope({ itemselector: '.item', layoutmode: 'masonry', transitionduration: '0.7s' }); $('.isotope-filters').on('click', 'a', function () { var filtervalue = $(this).attr('data-filter'); $container.isotope({ filter: filtervalue }); // active state var active = $(this), activeclass = active.data('filter'), parentfilters = active.closest('.isotope-filters'); if (active.hasclass('selected')) { return false; } parentfilters.find('a').removeclass('active'); active.addclass('active'); parentfilters.next().find('.isotope').addback('.isotope').isotope({ filter: active.attr('data-filter') }); return false; }); });
Comments
Post a Comment