Fixed the equal-height algorithm to work with all breakpoints.