 			layer_pos = vp.layer_pos = {}
 			pointer_pos = vp.pointer_pos = {}
 
-			# layer_pos.set_width = false
-			# layer_pos.set_height = false
-
 			# number of times we need to cut the layer
 			# to make it fit into the viewport
 			vp.cuts = 0

		if @__element
			dim_element = CUI.DOM.getDimensions(@__element)

			if @_use_element_width_as_min_width
				dim_layer.borderBoxWidth = Math.max(dim_layer.borderBoxWidth, dim_element.borderBoxWidth)

		else if @_show_at_position
			dim_element =
				viewportTop: @_show_at_position.top

				when "both"
					layer_pos.width = vp.width
					layer_pos.height = vp.height
				when "vertical"
					layer_pos.height = vp.height
					layer_pos.width = dim_layer.borderBoxWidth
				when "horizontal"
					layer_pos.width = vp.width
					layer_pos.height = dim_layer.borderBoxHeight
				else
					layer_pos.width = dim_layer.borderBoxWidth
					layer_pos.height = dim_layer.borderBoxHeight
