File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/components/tabController Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ class TabBar extends PureComponent {
241
241
setItemsLayouts = ( ) => {
242
242
const { selectedIndex} = this . context ;
243
243
// It's important to calculate itemOffsets for RTL support
244
- this . _itemsOffsets = _ . times ( this . _itemsWidths . length , ( i ) => _ . chain ( this . _itemsWidths ) . take ( i ) . sum ( ) . value ( ) ) ;
244
+ this . _itemsOffsets = _ . times ( this . _itemsWidths . length , ( i ) => _ . chain ( this . _itemsWidths ) . take ( i ) . sum ( ) . value ( ) + this . centerOffset ) ;
245
245
const itemsOffsets = _ . map ( this . _itemsOffsets , ( offset ) => offset + INDICATOR_INSET ) ;
246
246
const itemsWidths = _ . map ( this . _itemsWidths , ( width ) => width - INDICATOR_INSET * 2 ) ;
247
247
this . contentWidth = _ . sum ( this . _itemsWidths ) ;
You can’t perform that action at this time.
0 commit comments