Added option to disable calcHeight