Hmm, this is strange. One way is to use a percentage to calculate the actual maximum height. For instance:
var percentage = parseInt($('div.container').css('max-height')); //40? var parentHeight = $('div.container').parent.height(); // ie 1000 (this is a px value) var pixelHeight = parentHeight/percantage; // 400
Not sure what the code looks like, so this, of course, may not work as it is written. In addition, you will only need to do this for browsers for which it works funky!
source share