         let remain:CGFloat = width - kButtonWidth
         let margin:CGFloat = remain / 2.0
         layoutButtonLeft.constant = margin
+        collectionView.contentOffset = CGPoint.zero
+        collectionView.collectionViewLayout.invalidateLayout()
         
         super.layoutSubviews()
     }

        
        return cell
    }
}

        return size
    }
    
    func numberOfSections(in collectionView:UICollectionView) -> Int
    {
        return 1
    }
