Created
April 14, 2016 10:59
-
-
Save Jekins/f332e07c51acf80091dac3358199f3e8 to your computer and use it in GitHub Desktop.
Функция установки одинаковой высоты всем блокам
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* setEqualHeight */ | |
function setEqualHeight(columns) { | |
var | |
tallestcolumn = 0; | |
columns.each( function () { | |
currentHeight = $(this).outerHeight(true); | |
if (currentHeight > tallestcolumn) { | |
tallestcolumn = currentHeight; | |
} | |
}); | |
columns.height(tallestcolumn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment