How can I adjust the height and width of a widget?