SHARE
TWEET

Untitled

a guest Jul 17th, 2017 48 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. }
RAW Paste Data
Top