adjust the height of the widget when first loading