 	constructor: (args) ->
 		
 		args ?= {}
+		@_offset = {x:0, y:0}
 		
 		# Keep a generic list of all current views
 		View.Views.push @

	
	contentFrame: ->
		# Get the total size of all subviews
		frame =
			x: utils.min _.pluck(@subViews, "minX")
			y: utils.min _.pluck(@subViews, "minY")
		
		frame.width  = utils.max(_.pluck(@subViews, "maxX")) - frame.x
		frame.height = utils.max(_.pluck(@subViews, "maxY")) - frame.y
		
		frame
	
	centerX: -> @midX = @superView.width  / 2.0 if @superView
	centerY: -> @midY = @superView.height / 2.0 if @superView

		# Overridable creation hook
		@_postCreate?()
		
		
		
		if not args.superView
			@_insertElement()
	
