     
     private var _lastViewSize: CGSize = CGSize.zero
     private func setContentViewSize(_ animated: Bool = false) {
-        var newSize = self.collectionViewLayout.collectionViewContentSize
-        var contain = self.frame.size
-        
-        contain.width -= (contentInsets.left + contentInsets.right)
-        contain.height -= (contentInsets.top + contentInsets.bottom)
-        _lastViewSize = newSize
-        
-        // Don't let the content size be less than the cv
-        if newSize.width < contain.width  {
-            newSize.width = contain.width
-        }
-        if newSize.height < contain.height {
-            newSize.height = contain.height
-        }
+        let newSize = self.collectionViewLayout.collectionViewContentSize
+        
         if animated {
             NSAnimationContext.runAnimationGroup({ (ctx) in
                 ctx.duration = self.animationDuration

    }
    
    open override func viewDidEndLiveResize() {
        _topIP = nil
        self.delegate?.collectionViewDidEndLiveResize?(self)
        self.contentDocumentView.preparedRect = self._preperationRect

    }
    
    open override func layout() {
        
//        if #available(OSX 10.12, *) {
//            // Do nothing
