 		scrollDirection = .Horizontal
 		minimumInteritemSpacing = 1
 		minimumLineSpacing = 1
-		sectionInset = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
+		sectionInset = UIEdgeInsetsZero
 		headerReferenceSize = CGSizeZero
 		footerReferenceSize = CGSizeZero
 	}
 	
+	override func collectionViewContentSize() -> CGSize {
+		guard let model = self.model else {
+			return CGSizeZero
+		}
+		return CGSize(width: CGFloat(model.count * 25 + (model.count + 1)) * model.scale, height: 100)
+	}
+	
+
 //	override func shouldInvalidateLayoutForBoundsChange(newBounds: CGRect) -> Bool {
 //		return true
 //	}


class ScientificSliderViewController2: UIViewController, UICollectionViewDelegateFlowLayout, UICollectionViewDataSource, UIScrollViewDelegate {
	
	var scale: CGFloat = 1.0
	var originalScale: CGFloat = 1.0
	
	override func loadView() {
		super.loadView()
		view.backgroundColor = UIColor.lightGrayColor()
		view.addSubview(collectionView)
		view.addSubview(titleLabel)
		view.addSubview(valueLabel)
		view.addSubview(usageLabel)
	}
	
	lazy var usageLabel: UILabel = {
		let instance = UILabel()

	}()
	
	func computeItemSize() -> CGSize {
		let w = round(25 * model.scale)
//		return CGSize(width: w, height: collectionView.bounds.height)
		return CGSize(width: w, height: collectionViewHeight)
//		return CGSize(width: w, height: 40)
