Minor change to allow offsets to be changed on orientation change