         }
         
         if (dynamicUnpagedHeight) {
-            
             let viewSize = tableView.bounds.size.height
             let tableContentHeight = tableView.contentSize.height
             let scrollLimit = tableContentHeight - viewSize

                size: CGSize(width: width, height: scrollCountViewHeight)
            )
        } else {
            if totalScrollCountNum == 0 {
                return
            }
            
            if let p = percentage {
                var finalY = tableView.contentSize.height * percentage!
                
                if (finalY < 0) {
                    finalY = 0
                } else if(finalY > tableView.contentSize.height - scrollCountViewHeight) {
                    finalY = tableView.contentSize.height - scrollCountViewHeight
                }
                topConstraint.constant = finalY
            }
        }
    }
}

    public init(tableView:UITableView) {
        self.tableView = tableView
        tableView.layoutIfNeeded()
        
        super.init()
        scrollCountView.translatesAutoresizingMaskIntoConstraints = false
        tableView.addSubview(scrollCountView)
