Im trying to set an automatic height a div that contains 2 child elements, positioned fixed and absolutely respecitvely.
I want my parent container to have an auto h
Related to @Blowsie's answer:
/**
* Sets the height of a container to its maximum height of its children. This
* method is required in case
*
* @param selector jQuery selector
*/
function setHeightByChildrenHeight(selector)
{
$(selector).each(function()
{
var height = 0;
$(this).children("*").each(function()
{
height = Math.max(height, $(this).height());
});
$(this).height(height);
});
};