Make sure text boxes are given proper dimensions after hot-swapping