Fix issue #61 calculate widget size after evaluating script