jQuery - calculate max widget height