 		else
 			minWidth = undefined
 
+		CUI.DOM.setAttribute(@__layer_root.DOM, "cui-placement", placement)
+		CUI.DOM.setAttribute(@__layer_root.DOM, "cui-fill-space", @_fill_space)
+
+		if CUI.__ng__ and placement == "c" and not @__backdrop_crop
+			# in "ng" we position this by pure CSS
+			return
+
 		# set layer
 		CUI.DOM.setStyle @__layer.DOM,
 			top: vp.layer_pos.top
 			left: vp.layer_pos.left
 			width: vp.layer_pos.width
 			height: vp.layer_pos.height
+			margin: 0
 			minWidth: minWidth
 			# maxWidth: vp.width + vp.overlap_width
 			# maxHeight: vp.height + vp.overlap_height
-			margin: 0
 
 		if @__pointer
 			# set pointer

		#
		if not @isShown()
			return

		return if CUI.__ng__ and !@__element

		dim_window = CUI.DOM.getDimensions(window)


			width: ""
			height: ""
			margin: ""
			minWidth: ""

		dim_layer = CUI.DOM.getDimensions(@__layer.DOM)

