         return 12.0
     }
     
-    func dimensionsForCell(mode: T2GLayoutMode) -> CGSize {
+    func dimensionsForCell(mode: T2GLayoutMode) -> (width: CGFloat, height: CGFloat, padding: CGFloat) {
+        var width: CGFloat = 0.0
+        var height: CGFloat = 0.0
+        
         if mode == .Collection {
-            return CGSizeMake(98, 98)
+            width = 98.0
+            height = 98.0
         } else {
-            return CGSizeMake(self.view.frame.size.width * 0.9, 64.0)
-        }
+            width = self.scrollView.frame.size.width * 0.9
+            height = 64.0
+        }
+        
+        return (width, height, 12.0)
     }
     
     func dimensionsForSectionHeader() -> CGSize {


import UIKit

class ExampleViewController: T2GViewController, T2GViewControllerDelegate, T2GDropDelegate {
    
    var modelArray: [Int] = []
    var modelArray2: [Int] = []

        super.viewDidLayoutSubviews()
        
        if self.delegate == nil {
            self.scrollView.dataDelegate = self
            self.delegate = self
            self.dropDelegate = self
        }
