Skip to content

Instantly share code, notes, and snippets.

@rruhlen rruhlen/resize.js
Created Sep 29, 2016

What would you like to do?
resize divs so they have the same height.
function adjustBoxes() {
var elementHeights = $('.desk-topic').map(function() {
return $(this).outerHeight();
var maxHeight = Math.max.apply(null, elementHeights);
$(function() {
$(window).on('resize', function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.