Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function setEqualHeight(columns, min){
  2.     var tallestcolumn = 0;
  3.     columns.each(function(){
  4.         currentHeight = $(this).height();
  5.         if(currentHeight > tallestcolumn){
  6.             tallestcolumn = currentHeight;
  7.         }
  8.     });
  9.     if(tallestcolumn<min)
  10.         tallestcolumn=min;
  11.     columns.height(tallestcolumn);
  12.    
  13.     return tallestcolumn;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement