Transform internal layout so that the underlying layout data and the view are oriented.

Signed-off-by: OwenPatey <owen_patey@hotmail.com>