|
|
@ -654,9 +654,9 @@ class TabTrayView(
|
|
|
|
// We add the offset, because the layoutManager is initialized with `reverseLayout`.
|
|
|
|
// We add the offset, because the layoutManager is initialized with `reverseLayout`.
|
|
|
|
// We also add 1 to display the tab item above the selected browser tab.
|
|
|
|
// We also add 1 to display the tab item above the selected browser tab.
|
|
|
|
val recyclerViewIndex = selectedBrowserTabIndex +
|
|
|
|
val recyclerViewIndex = selectedBrowserTabIndex +
|
|
|
|
collectionsButtonAdapter.itemCount +
|
|
|
|
collectionsButtonAdapter.itemCount +
|
|
|
|
syncedTabsController.adapter.itemCount +
|
|
|
|
syncedTabsController.adapter.itemCount +
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
|
|
|
|
|
|
|
layoutManager?.scrollToPosition(recyclerViewIndex)
|
|
|
|
layoutManager?.scrollToPosition(recyclerViewIndex)
|
|
|
|
}
|
|
|
|
}
|
|
|
|