Added the ability to change the orientation of the dock.