 
 		window.canvas = @dom
 
-		onResize = (e) =>
+		onResize = =>
+			return if not @fillParent
+
 			canvasRatio = @dom.height / @dom.width
 			containerRatio = @container.clientHeight / @container.clientWidth
 			if containerRatio < canvasRatio

		# API
		@shapes = []

		if not options.fillParent
			@dom.width = @width
			@dom.height = @height
			@dom.style.width = @width + 'px'

		@height = options.height
		@fps = options.fps
		@container = options.container
		@fillParent = options.fillParent

		@isDrawKeyPoints = true

