Cleaned up the setting of the hight of the widget.