This is the situation, I have 2 div\'s next to each other. One div is very dynamic in height, which basically means it can grow and shrink to accommodate for it\'s content.
The only thing I could think of is having some timer checking the height every X seconds.
Something like this:
function checkHeightTimer(){
var div1 = $('#div1');
var div2 = $('#div2');
var somesize = #somenumber here;
if(div1.height() > somesize){
//do something to div2
}
setTimeout(checkHeightTimer, 500); //at 500 miliseconds
}