 		size = 0
 		for child in children
 			if child._visible
-				tmp = child._width
+				tmp = child._x + child._width
 				if tmp > size
 					size = tmp
 

		size = 0
		for child in children
			if child._visible
				tmp = child._height
				if tmp > size
					size = tmp


	child.onVisibleChanged update, @
	child.onWidthChanged update, @
	child.onHeightChanged update, @
	child.onXChanged update, @
	child.onYChanged update, @

disableChild = (child) ->
	child.onVisibleChanged.disconnect update, @
	child.onWidthChanged.disconnect update, @
	child.onHeightChanged.disconnect update, @
	child.onXChanged.disconnect update, @
	child.onYChanged.disconnect update, @

exports.DATA =
	pending: false
