Skip to content

Instantly share code, notes, and snippets.

@Jekins
Created April 14, 2016 10:59
Show Gist options
  • Save Jekins/f332e07c51acf80091dac3358199f3e8 to your computer and use it in GitHub Desktop.
Save Jekins/f332e07c51acf80091dac3358199f3e8 to your computer and use it in GitHub Desktop.
Функция установки одинаковой высоты всем блокам
/* 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