 
 		dim_window = CUI.getViewport()
 
+		get_pointer_direction = (placement) ->
+			# return direction
+			{
+				n: "s"
+				s: "n"
+				e: "w"
+				w: "e"
+			}[placement]
+
 		get_pointer_class = (direction) =>
 			if CUI.__ng__
 				"cui-layer-pointer--"+direction
 			else
-				"cui-pointer-placement-"+pointer_direction
+				# we need to map this back, the interpretatin
+				# in old css was different
+				"cui-pointer-placement-"+get_pointer_direction(direction)
 
 		if @__pointer
 			# reset pointer

			for direction in ["w", "s", "e", "n"]
				CUI.DOM.removeClass(@__pointer, get_pointer_class(direction))

		# measure all 4 directions for all pointers
		dim_pointer = {}
		for placement in ["n", "s", "e", "w"]

			pointer_direction = {
				n: "s"
				s: "n"
				e: "w"
				w: "e"
			}[placement]

			if @__pointer
				CUI.DOM.addClass(@__pointer, get_pointer_class(pointer_direction))

			vp.layer_pos.aspect_ratio = vp.layer_pos.width / vp.layer_pos.height
			vp.dim_layer.aspect_ratio = vp.dim_layer.borderBoxWidth / vp.dim_layer.borderBoxHeight

			wanted_rank = (allowed_placements.length - idxInArray(placement, allowed_placements))
			if wanted_placement == placement
				wanted_rank = allowed_placements.length + 1

			vp.ranking =
				wanted_rank*10 +
				1 - Math.abs(vp.layer_pos.aspect_ratio - vp.dim_layer.aspect_ratio) +
				vp.layer_pos.estate

