Need adjust the height based on the offset