 			@containerInnerWidth = @measureInnerWidth @$originalParent
 			@originalHeight = @$el.height()
 
-			@badylInnerHeight = @originalHeight + @config.offset * 2
+			@badylInnerHeight = @originalHeight + @config.offsetTop + @config.offsetBottom
 
 			# return if @originalHeight is 0
 
 			@$refEl.css height: ""
-			@badylHeight = @$refEl.height() + @config.offset * 2
+			@badylHeight = @$refEl.height() + @config.offsetTop + @config.offsetBottom
 			if @badylInnerHeight > @badylHeight
 				@$refEl.css height: "#{@badylInnerHeight}px"
-				@badylHeight = @$refEl.height() + @config.offset * 2
+				@badylHeight = @$refEl.height() + @config.offsetTop + @config.offsetBottom
 
 			@$el.replaceWith @$badylContainer = $("""<div>""")
 				.css
 					position: 'relative'
 					height: "#{@badylHeight}px"
-					margin: "-#{@config.offset}px 0"
+					margin: "-#{@config.offsetTop}px 0 -#{@config.offsetBottom}px"
 				.append @$badylInner = $("""<div>""")
 					.css
 						width: "#{@containerInnerWidth}px"
 						height: "#{@badylInnerHeight}px"
-						padding: "#{@config.offset}px 0"
+						padding: "#{@config.offsetTop}px 0 #{@config.offsetBottom}px"
 					.append @$originalElement = @$el.clone()
 
 			@$originalElement.data "badyl", @

		constructor: (@el, config) ->
			@$el = $ @el
			@$el.data "badyl", @
			@config = $.extend {}, @defaults, config
			@state = null
			@badylized = no

			@state = null

			@$refEl.css height: ""
			@badylHeight = @$refEl.height() + @config.offsetTop + @config.offsetBottom

			@$badylInner.css
				width: "#{@containerInnerWidth}px"
				padding: "#{@config.offsetTop}px 0 #{@config.offsetBottom}px"
			@originalHeight = @$originalElement.height()
			@badylInnerHeight = @originalHeight + @config.offsetTop + @config.offsetBottom

			if @badylInnerHeight > @badylHeight
				@$refEl.css height: "#{@badylInnerHeight}px"
				@badylHeight = @$refEl.height() + @config.offsetTop + @config.offsetBottom

			@$badylContainer.css
				position: 'relative'
				height: "#{@badylHeight}px"
				margin: "-#{@config.offsetTop}px 0 -#{@config.offsetBottom}px"
			@$badylInner.css
				height: "#{@badylInnerHeight}px"

