 			maxHeight: ""
 
 		dim_layer = CUI.DOM.getDimensions(@__layer.DOM)
+
+		# console.debug "layer dimensions:", dim_layer.borderBoxWidth, dim_layer.borderBoxHeight, @__layer.DOM
 
 		allowed_placements = (@_placements or @knownPlacements).slice(0)
 		wanted_placement = @_placement or allowed_placements[0]



				overlap_width = dim_layer.borderBoxWidth - layer_pos.width

				if overlap_width > 0
					switch vp.overlap_align

					layer_pos.width = dim_layer.borderBoxWidth
					layer_pos.height = dim_layer.borderBoxHeight

			# console.debug placement, vp, layer_pos.width, layer_pos.height, vp.width, vp.height

			if layer_pos.width > vp.width
				layer_pos.width = vp.width
				vp.cuts++
