 	}
 	
 	fileprivate func updateScrollContentInsetTop(_ top: CGFloat) {
-        let contentInset = UIEdgeInsets(top: top, left: scrollView.contentInset.top, bottom: scrollView.contentInset.left, right: scrollView.contentInset.right)
+        let top = adjustTopInset(top)
+        
+        let contentInset = UIEdgeInsets(top: top, left: scrollViewContentInset.top, bottom: scrollViewContentInset.left, right: scrollViewContentInset.right)
         if delegate?.hidingNavigationBarManagerShouldUpdateScrollViewInsets(self, insets: contentInset) == false {
             return
         }
         
         if viewController.automaticallyAdjustsScrollViewInsets {
-            var contentInset = scrollView.contentInset
+            var contentInset = scrollViewContentInset
             contentInset.top = top
             scrollView.contentInset = contentInset
         }


		if scrolledToTop {
			var offset = scrollView.contentOffset
			offset.y = -scrollView.contentInset.top
			scrollView.contentOffset = offset
		}
		

		
		var scrolledToTop = false
		
		if scrollViewContentInset.top == -scrollView.contentOffset.y {
			scrolledToTop = true
		}
		
