 		:name:	close
 	*/
 	public func close(velocity: CGFloat = 0) {
-		let w: CGFloat = sideView.width
-		let h: CGFloat = sideView.height
-		let d: Double = Double(0 == velocity ? animationDuration : fmax(0.1, fmin(1, Double(sideView.x / velocity))))
-		
 		toggleStatusBar(false)
-		MaterialAnimation.animationWithDuration(d, animations: {
-			self.sideView.position = CGPointMake(-w / 2, h / 2)
+		MaterialAnimation.animationWithDuration(Double(0 == velocity ? animationDuration : fmax(0.1, fmin(1, Double(sideView.x / velocity)))),
+		animations: {
+			self.sideView.position = CGPointMake(-self.sideView.width / 2, self.sideView.height / 2)
 			self.backdropLayer.hidden = true
 		}) {
 			self.userInteractionEnabled = true

	public override func viewWillLayoutSubviews() {
		super.viewWillLayoutSubviews()
		layoutBackdropLayer()
		if let v: MaterialView = sideView {
			sideViewController?.view.frame = v.bounds
			sideViewController?.view.center = CGPointMake(v.width / 2, v.height / 2)
		}
	}
	
	/**

		// container
		sideView.frame = CGRectMake(0, 0, sideViewControllerWidth, view.frame.height)
		sideView.backgroundColor = MaterialColor.blue.accent3
		sideView.autoresizesSubviews = true
		view.addSubview(sideView)
		
		MaterialAnimation.animationDisabled({
