StatesDialog.onResize Method

This method should be called when the window re-sizes.