src/vs/base/browser/ui/grid/grid.ts/getLocationOrientation
function getLocationOrientation(rootOrientation: Orientation, location: GridLocation): Orientation {
	return location.length % 2 === 0 ? orthogonal(rootOrientation) : rootOrientation;
}