Equalize column javascript not working in Chrome
Posted
by alimango
on Stack Overflow
See other posts from Stack Overflow
or by alimango
Published on 2009-06-17T05:19:08Z
Indexed on
2010/04/18
14:03 UTC
Read the original article
Hit count: 335
mootools
|JavaScript
Hi, I'm using this mootools javascript snippet to equalize the height of my columns:
window.addEvent('domready', function()
{
var columns = $$('.equalize');
var max_height = 0;
columns.each(function(item)
{ max_height = Math.max(max_height, item.getSize().y); });
columns.setStyle('height', max_height);
});
Problem is it's not working properly on Chrome. It's getting the minimum height of the 2 columns instead of getting the maximum. What seems to be the problem and how do I fix it? Thanks in advance!
© Stack Overflow or respective owner