             self.pageIndicatorView.frame = pageIndicatorFrame
             self.pageIndicatorView.reloadView(updateShadow: true)
             
-            // adjust scroll scrubber slider
+            // Adjust scroll scrubber slider
             self.scrollScrubber.slider.frame = scrollScrubberFrame
             
             // Adjust collectionView

    
    private var screenBounds: CGRect!
    private var pointNow = CGPointZero
    private let pageIndicatorHeight = 20 as CGFloat
    
    // MARK: - View life cicle
    

        pagesForCurrentPage(currentPage)
        
        scrollScrubber.setSliderVal()
        
        // After rotation fix internal page offset
        var pageOffset = self.currentPage.webView.scrollView.contentSize.forDirection() * pageOffsetRate
        
        // Fix the offset for paged scroll
        if readerConfig.scrollDirection == .horizontal {
            var page = round(pageOffset / pageWidth)
            pageOffset = page * pageWidth
        }
        
        let pageOffsetPoint = isVerticalDirection(CGPoint(x: 0, y: pageOffset), CGPoint(x: pageOffset, y: 0))
        self.currentPage.webView.scrollView.setContentOffset(pageOffsetPoint, animated: true)
    }
    
    override func willAnimateRotationToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation, duration: NSTimeInterval) {
