Unverified Commit dcb99856 authored by Gabriel Luong's avatar Gabriel Luong Committed by GitHub
Browse files

For #13264 - Scroll to the tab above the selected tab in the tabs tray (#14372)

parent 2f1b9030
......@@ -543,9 +543,11 @@ class TabTrayView(
// We offset the tab index by the number of items in the other adapters.
// 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.
val recyclerViewIndex = selectedBrowserTabIndex +
collectionsButtonAdapter.itemCount +
syncedTabsController.adapter.itemCount +
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment