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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -