Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement scroll_to_center method #2031

Closed
willmcgugan opened this issue Mar 13, 2023 · 3 comments · Fixed by #2255
Closed

Implement scroll_to_center method #2031

willmcgugan opened this issue Mar 13, 2023 · 3 comments · Fixed by #2255
Assignees
Labels
enhancement New feature or request Task

Comments

@willmcgugan
Copy link
Collaborator

We have methods to scroll widgets in to view, but these tend to do as little scrolling as possible.

We may have a need to scroll something to the center. This would benefit the Tabs control.

@davep davep added enhancement New feature or request Task labels Mar 14, 2023
@rodrigogiraoserrao rodrigogiraoserrao self-assigned this Mar 27, 2023
@rodrigogiraoserrao
Copy link
Contributor

Do you mind clarifying what "center" we are talking about?
With what I'm imagining in my head, I can't figure out how it would benefit the Tabs control.

@willmcgugan
Copy link
Collaborator Author

It would scroll the widgets parent so as to position the widget in the center of its container.

When move the tab selection to the right edge, you can't see what tabs are remaining. By moving the section to the center, you can see tabs in both directions.

@github-actions
Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants