Fixed a bug where widget positions would be incorrect unless dimensions were set every frame.