 		# Set the background color for he created scroll component
 		if layer instanceof ScrollComponent
 			scroll.backgroundColor = @backgroundColor
+			scroll.contentInset =
+				top: @header?.height or 0
+				bottom: @footer?.height or 0
 
 		return layer
 


		# Run the transition and update the history
		@_runTransition(transition, "forward", options.animate, @current, layer)
		@_stack.push({layer: layer, transition: transition})



			return unless layer instanceof Layer
			@_header = layer
			@_header.name = "header"
			@_header.width = @width
			@_header.setParentPreservingConstraintValues(@)
			if not @_header.constraintValues?
				@_header.x = Align.center
