         for i in 0..<keyViews.count {
             let view = keyViews[i]
             view.frame = CGRectMake(CGFloat(i)*whiteKeyWidthPx,
-                0, whiteKeyWidthPx, bounds.height - scrollPadHeight)
+                0, whiteKeyWidthPx, bounds.height - scrollPadHeightPx)
             lastMaxX = CGRectGetMaxX(view.frame)
         }
-        keyContainer.contentSize = CGSizeMake(lastMaxX, bounds.height)
+        keyContainer.contentSize = CGSizeMake(lastMaxX,
+            keyContainer.bounds.height)
         scrollPad.contentSize = CGSizeMake(lastMaxX, scrollPad.bounds.height)
     }
 


    func load() {
        multipleTouchEnabled = true
        scrollPadHeight = whiteKeyWidthPx
        updateWithPitches(pitchSet)
        addSubview(keyContainer)
        addSubview(scrollPad)

    override public func layoutSubviews() {
        super.layoutSubviews()

        scrollPad.frame = CGRectMake(0, bounds.height - scrollPadHeightPx,
            bounds.width, scrollPadHeightPx)
        keyContainer.frame = CGRectMake(0, 0,
            bounds.width, CGRectGetMinY(scrollPad.frame))

