DAR-2887 fix for IE max-height calculations
DAR-2887 renamed and re-used defined variable