Have had to add back in panel width and height until work out another way
around working out transition degrees.