corrects height and width when element is resized