CodeEdit
CodeEdit copied to clipboard
✨ Scroll to active tab if it is out of view
Is your feature request related to a problem? Please describe.
When a tab is open but out of view within the viewport of the tab bar scroll view, when the user opens the file via the project navigator or open quickly panel, the active tab is out of view. I expect the scroll position to be adjusted so that the newly active tab is in view.
Describe the solution you'd like
If tab is changed, scroll to the new tab if out of view.
If the left side of the newly active tab is to the left of the viewport, scroll to the position where the left tab aligns with the left of the scroll view.
If the right side of the newly active tab is to the right of the viewport, scroll to the position where the right of the tab aligns with the right of the scroll view.