         let isCollapsed = !cellsLibraries[section].licenseCollapsed
         
         cellsLibraries[section].licenseCollapsed = isCollapsed
+        
+        CATransaction.begin()
+        CATransaction.setCompletionBlock { () -> Void in
+            self.scrollToSection(section)
+        }
         
         self.beginUpdates()
         self.reloadRows(at: [IndexPath(row: 1, section: section)], with: isCollapsed ? .top : .bottom)
         self.endUpdates()
-    }
-}
-
+        
+        CATransaction.commit()
+    }
+}
+

        self.separatorColor = .clear
        self.separatorStyle = .none
        self.allowsSelection = false
        
        self.register(UINib(nibName: "HeaderView", bundle: LicensyTable.bundle), forHeaderFooterViewReuseIdentifier: "HeaderView")
        self.register(UINib(nibName: "InfoCellView", bundle: LicensyTable.bundle), forCellReuseIdentifier: "infoCell")

        }
    }
    
    public func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
        return UIView()
    }
    
    
    /// The estimated cell height for the table view at a given index path
    ///
