Fix dynamic Widget resizing broken with last commit.