-
Notifications
You must be signed in to change notification settings - Fork 6.8k
bug(Tabs): Paginator items are not shown if layout of view changes #23206
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
Comments
The reason this happens is that the calculations to check if the paginator should be shown can be expensive, because they can trigger a page layout. In order to limit their impact, we only recalculate the pagination when a tab is added/removed, when the content of the tab header itself changes (based on We may be able to do this automatically once support for IE11 is dropped, but until then we also expose an API that you can use to tell the tabs to recalculate their pagination. |
@crisbeto thanks for your response. So are you already providing a API to recalculate? That would be perfectly fine as I have the information when to update anyway. Or are you planning to implement such? |
Hmm, I was under the impression that we did, but it seems like we only have one for re-aligning the ink bar. I'll reopen this issue as a feature request. Technically you can access it already if you're comfortable with accessing private APIs. It's at |
We try to update the pagination state of the tab group very sparingly, because it has performance implications. This means that we may miss some updates. These changes expose a method so that consumers can trigger a recalculation on their own. Fixes angular#23206.
We try to update the pagination state of the tab group very sparingly, because it has performance implications. This means that we may miss some updates. These changes expose a method so that consumers can trigger a recalculation on their own. Fixes #23206.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We try to update the pagination state of the tab group very sparingly, because it has performance implications. This means that we may miss some updates. These changes expose a method so that consumers can trigger a recalculation on their own. Fixes angular#23206.
Reproduction
Steps to reproduce:
Expected Behavior
I would expect that if the layout of the view changes and the tabs do not have enough space anymore the paginator elements are shown automatically. If the tabs have enough space the paginator elements should disappear.
Actual Behavior
Paginator elements are only added when I resize the window. Not when the layout changes.
Environment
The text was updated successfully, but these errors were encountered: