Auto update absolute value of maxHeight on resize