 utils = require "../utils"
+check = require "check-types"
 _ = require "underscore"
 
 {Frame} = require "../primitives/frame"

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

		minY = utils.min _.pluck @subViews, "minY"
		maxY = utils.max _.pluck @subViews, "maxY"
		
		new Frame
			x: minX
			y: minY
			width: maxX - minX
