I've been using this bit (jQuery equal height responsive div rows) of jQuery for equal heights and it works very well, but with BS2 and BS3 if the same pattern is used, it doesn't scan the row to make the equal heights, it scans the page itself and then all patterns (row > col--) on the same page get the height of the tallest on the page. That's not the desired implementation.
This above JSBin has an example of it working with BS3 columns (a copy of it). You can't have relative position on the columns at the stacking point, so these have been copied for the purpose of this Bin. As you can see, if you create a different class on each row (.foo and .foo2 in this example) and then the columns behave but if you decide to use the same pattern the height of the tallest on the page will take over.
Question: How to fix the problem of when the same pattern is used it calculates based on the page and not the row?
Thanks!!!
If i understood correctly that you want each row to have the same height, based on tallest div, while each row has the same class name values e.g.
foo
then the following code does that. The idea is to check the parent of the elements that are resized and if the parent has changed i.e. when resizing divs of the seconddiv.row
, then apply changes and reset the values of max height. In order to work for the specified parent a parameter has been introduced to specify the parent selector. http://jsbin.com/uBeQERiJ/1