add functionality to set size of widget

Signed-off-by: Michel Fest <it@logeekal.com>