Advertisement
artemsemkin

Kinsey Template: fix for Masonry grid

Mar 8th, 2023
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Find this code in /js/components.js file
  2. if (typeof this.onArrangeComplete === 'function') {
  3.   this.isotopeInstance.on('arrangeComplete', () => {
  4.     this.onArrangeComplete();
  5.     this._equalizeColumnsHeight();
  6.   });
  7. }
  8.  
  9. // Fix: add a check before calling _equalizeColumnsHeight()
  10. if (typeof this.onArrangeComplete === 'function') {
  11.   this.isotopeInstance.on('arrangeComplete', () => {
  12.     this.onArrangeComplete();
  13.  
  14.     if (this.equalHeights) {
  15.       this._equalizeColumnsHeight();
  16.     }
  17.   });
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement