     
     override public var bounds : CGRect {      //Set bar size
         didSet {
-            self.frame = CGRect(x: bounds.origin.x, y: bounds.origin.y, width: bounds.size.width, height: CGFloat(navBarHeight))
+            self.frame = CGRect(x: bounds.origin.x, y: bounds.origin.y, width: bounds.size.width, height: CGFloat(height))
         }
     }
 }

    
    func setupAppearance() {
        // Compensate for height change by moving back button
        let offset : CGFloat = (44 - CGFloat(navBarHeight))/2
        
        TDRoundedNavigationBar.appearance().setTitleVerticalPositionAdjustment(offset, for: UIBarMetrics.default)
        TDRoundedNavigationBar.appearance().setTitleVerticalPositionAdjustment(offset - 5, for: UIBarMetrics.compact)

                var frame = view.frame
                if view.tag == 0 {
                    // On the first layout we work out what the actual position should be by applying our offset to the default position.
                    frame.origin.y = (CGFloat(height) - view.frame.size.height)/2
                    view.tag = Int(frame.origin.y)
                }
                else{
