 
 		dim_window = CUI.getViewport()
 
+		get_pointer_class = (direction) =>
+			if CUI.__ng__
+				"cui-layer-pointer--"+direction
+			else
+				"cui-pointer-placement-"+pointer_direction
+
 		if @__pointer
 			# reset pointer
 			CUI.DOM.setStyle(@__pointer,

			)

			for direction in ["w", "s", "e", "n"]
				if CUI.__ng__
					CUI.DOM.removeClass(@__pointer, "cui-layer-pointer--"+direction)
				else
					CUI.DOM.removeClass(@__pointer, "cui-pointer-placement-"+direction)

		# measure all 4 directions for all pointers
		dim_pointer = {}

				left: vp.pointer_pos.left
				margin: 0

			CUI.DOM.addClass(@__pointer, get_pointer_class(vp.pointer_pos.direction))

		if @__backdrop_crop
			DOM.setStyle @__backdrop_crop,
