﻿

function fixChildHeights( rowObject ) {
    fixReadMore( rowObject );

    var maxHeight = 0;
    //alert( rowObject.length );
    rowObject.children().each( function() {
        //alert( "height = " + $(this).height() );
        var thisHeight = $(this).height();
        try {
            var readMoreLinks = $(this).find(".readMoreLinkContainer");
            if (readMoreLinks.length > 0 ) {
                thisHeight += 10;
            }
        } catch (err) {
        }   

        if (thisHeight > maxHeight) {
            maxHeight = thisHeight;
        }
    } );
    
    rowObject.children().each( function() {
        //alert( "height = " + $(this).height() );
        $(this).height(maxHeight);
    } );
    
    //alert( "maxHeight = " + maxHeight );
    
    
}
function fixReadMore( rowObject ) {
    try {
        var readMoreLinks = rowObject.find(".readMoreLinkContainer");
        if (readMoreLinks.length > 0 ) {
            readMoreLinks.css(
                {
                    "position": "absolute",
                    "bottom": "0px",
                    "left": "10px"
                 }
                
              );
        } 
    } catch (err) {
 
    }
}