                 
                 menuItemWidth = itemWidthRect.width
                 
-                menuItemFrame = CGRect(x: totalMenuItemWidthIfDifferentWidths + menuMargin + (menuMargin * index), y: menuItemFrameToBottomMargin, width: menuItemWidth, height: menuHeight - menuItemFrameToBottomMargin * 2)
+                menuItemFrame = CGRect(x: totalMenuItemWidthIfDifferentWidths + menuMargin + (menuMargin * index), y: menuItemFrameToBottomMargin, width: menuItemWidth, height: menuHeight - menuItemFrameToBottomMargin * 2.2)
                 
                 totalMenuItemWidthIfDifferentWidths += itemWidthRect.width
                 menuItemWidths.append(itemWidthRect.width)

                    menuItemX = menuItems[index-1].frame.maxX + menuMargin
                }
                
                menuItem.frame = CGRect(x: menuItemX, y: 0.0, width: menuItem.bounds.width, height: menuItem.bounds.height)
            }
        }
    }

    open var extraBottomViewSize: CGFloat = 0.0
    open var shouldAddButtonViewIcon: Bool = false
    open var shouldChangeSelectedItemBackgroundColor: Bool = false
    open var shouldAddIconBetweenLabels: Bool = false
    
    var currentOrientationIsPortrait : Bool = true
    var pageIndexForOrientationChange : Int = 0
