diff --git a/Sources/ButtonBarPagerTabStripViewController.swift b/Sources/ButtonBarPagerTabStripViewController.swift index 36e008d6..ce4d22e9 100644 --- a/Sources/ButtonBarPagerTabStripViewController.swift +++ b/Sources/ButtonBarPagerTabStripViewController.swift @@ -194,9 +194,13 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa open override func reloadPagerTabStripView() { super.reloadPagerTabStripView() guard isViewLoaded else { return } + reloadButtonBarView() + buttonBarView.moveTo(index: currentIndex, animated: false, swipeDirection: .none, pagerScroll: .yes) + } + + open func reloadButtonBarView() { buttonBarView.reloadData() cachedCellWidths = calculateWidths() - buttonBarView.moveTo(index: currentIndex, animated: false, swipeDirection: .none, pagerScroll: .yes) } open func calculateStretchedCellWidths(_ minimumCellWidths: [CGFloat], suggestedStretchedCellWidth: CGFloat, previousNumberOfLargeCells: Int) -> CGFloat {